Ticket #6452: Mythweb-CustomSchedule.txt

File Mythweb-CustomSchedule.txt, 3.5 KB (added by Bradley Ford <wombo1@…>, 15 years ago)

Mythweb Help - Custom Schedule

Line 
1Index: mythplugins/mythweb/modules/tv/tmpl/default/schedules_custom.php
2===================================================================
3--- mythplugins/mythweb/modules/tv/tmpl/default/schedules_custom.php    (revision 20349)
4+++ mythplugins/mythweb/modules/tv/tmpl/default/schedules_custom.php    (working copy)
5@@ -22,6 +22,55 @@
6 // Print the page header
7     require 'modules/_shared/tmpl/'.tmpl.'/header.php';
8 
9+// Create the help Popups
10+//    Search Type Help
11+    global $Categories;
12+    if (!empty($Categories)) {
13+        $SearchTypeHelp = <<<EOF
14+<table width="400" style="background-color: #003060;" border="1" cellpadding="0" cellspacing="0">
15+<tr>
16+    <td><table width="400" style="background-color: #003060;" class="small" cellpadding="5" cellspacing="5">
17+        <tr>
18+            <h3>Search Type Help</h3>
19+            <b>Title Search: </b><br>Search all program titles containing the Title text below<br>
20+            <b>Keyword Search: </b><br>Search all program keywords for a match against search phrase below<br>
21+            <b>People Search: </b><br>Search for all actors contained in a recording for a match against search phrase below<br>
22+            <b>Power Search: </b><br>Search will perform complex SQL queries against the database as per the search phrase below
23+        </tr>
24+    </td>
25+</tr>
26+</table>
27+EOF;
28+   
29+}
30+
31+//    Recording Options Help
32+
33+    if (!empty($Categories)) {
34+        $RecordingOptionsHelp = <<<EOF
35+<table width="400" style="background-color: #003060;" border="1" cellpadding="0" cellspacing="0">
36+<tr>
37+    <td><table width="400" style="background-color: #003060;" class="small" cellpadding="5" cellspacing="5">
38+        <tr>
39+            <h3>Recording Options Help</h3>
40+            <b>Title: </b><br>Searches will be performed against the title of all TV shows<br>
41+            <b>Search Phrase: </b><br>Depending on the Search type this is where you enter actual main search commands<br>
42+            <b>Additional tables: </b><br>Allows you to search through other database tables when using a power search<br>
43+            <b>Commands:</b>
44+            <ul>
45+                <li><b>%:  </b> Allows you to match any string of any length (including zero length)</li>
46+                <li><b>_:  </b> Allows you to match on a single character</li>
47+            </ul>
48+
49+            For more information on the Power Search please go to:
50+              http://www.mythtv.org/wiki/Custom_Recording
51+        </tr>
52+    </td>
53+</tr>
54+</table>
55+EOF;
56+}
57+
58 // Print the page contents
59 ?>
60 
61@@ -80,7 +129,9 @@
62         </div>
63 
64         <div class="x-options">
65-            <h3><?php echo t('Search Type') ?>:</h3>
66+            <h3><a href="<?php echo root ?>" <?php
67+                        echo show_popup('SearchTypeHelp',$SearchTypeHelp)
68+                        ?>>Search Type:</a></h3>
69 
70             <ul>
71                 <li><input type="radio" class="radio" name="searchtype" value="<?php echo searchtype_title ?>" id="searchtype_title"<?php
72@@ -101,10 +152,12 @@
73                     <label for="searchtype_power"><?php echo t('Power Search') ?></label></li>
74             </ul>
75 
76-        </div>
77+        </div
78 
79         <div class="x-options">
80-            <h3><?php echo t('Recording Options') ?>:</h3>
81+            <h3><a href="<?php echo root ?>" <?php
82+                        echo show_popup('RecordingOptionsHelp',$RecordingOptionsHelp)
83+                        ?>>Recording Options:</a></h3>
84 
85             <dl id="title_options" class="x-long">
86                 <dt><?php echo t('Title') ?>:&nbsp;</dt>