Zz9pzza
User
| Posts: 144 |   |
 

|
DONE: Select all in edit details - 2008/01/19 18:18
This adds a select all tick box in edit tv details.
An edit to the html template to add the function.
| Code: |
--- ../../swiss/config/config_template.php 2008-01-10 20:20:58.444066512 +0000
+++ ../../swissbeta/config/config_template.php 2008-01-19 23:11:36.739493888 +0000
@@ -11,6 +11,15 @@
<link rel="stylesheet" type="text/css" media="screen" href="sdmenu.css" />
<link rel="stylesheet" type="text/css" media="screen" href="config.css" />
<link rel="stylesheet" type="text/css" media="screen" href="slider.css" />
+ <script type="text/javascript" defer="defer">
+ function handleClick (name)
+ {
+ var Input=document.getElementsByName(name);
+ var state=document.getElementById("selectall").checked;
+ for(var i=0;i<Input.length;i++){
+ Input[i].checked=state;
+ }
+ } </script>
<script type="text/javascript" src="slider.js"></script>
<script type="text/javascript" src="sdmenu.js"></script>
<script type="text/javascript">
|
Then an edit to config_tv.php, Given i been working on storing tv database details in xml I can't provide a proper patch but I believe the following is the only change.
| Code: |
</td><td width"50%" align="right">^M
+Select All<input onclick=\'handleClick("tv[]")\' type="checkbox" id="selectall" ></input>
'.str('SEARCH').' : ^M
<input name="search" value="'.$_REQUEST["search"].'" size=10>^M
|
And this would be the patch for the movie page
| Code: |
--- ../../swiss/config/config_movie.php 2008-01-10 20:20:54.039815528 +0000
+++ ../../swissbeta/config/config_movie.php.new 2008-01-20 08:32:45.406161857 +0000
@@ -257,6 +257,7 @@
<a href="'.url_set_param($this_url,'list','THUMBS').'"><img align="absbottom" border="0" src="/images/thumbs.gif"></a>
</td><td width"50%" align="right">
'.str('SEARCH').' :
+ Select All<input onclick='tvhandleClick("movie[]")' type="checkbox" id="selectall" ></input>
<input name="search" value="'.$_REQUEST["search"].'" size=10>
</form>
</td></tr></table>;
|
-- Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB Client: Buffalo LinkTheatre, dLAN 200 AV MySQL 5.0.32-Debian_7etch1-log |