spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


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,+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,+257,@@          <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
  | | The administrator has disabled public write access.
Re: DONE: Select all in edit details - 2008/01/20 14:42 Thanks - I've included this for the next release.

Rob
Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
Re: DONE: Select all in edit details - 2008/01/20 15:24 Thanks , looking at changeset 919

http://tools.assembla.com/swiss/changeset/919

Did you mean to edit trunk/swisscenter/config/config_movie.php line 623 it looks like there has been a paste error ?
--
Server: Debian 4.0, Ram: 3 gig , Disc : 5 TB
Client: Buffalo LinkTheatre, dLAN 200 AV
MySQL 5.0.32-Debian_7etch1-log
  | | The administrator has disabled public write access.
Re: DONE: Select all in edit details - 2008/01/20 15:56 No, i didn't mean to edit that line.
Well spotted!!

Player : Pinnacle Showcenter 200 and 1000 (wired ethernet)
Server : Windows XP Pro running on an Athlon XP 2200, 768 Mb RAM, 1.8 Tb storage.

  | | The administrator has disabled public write access.
spacer
 

Screenshots

www.flickr.com
This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


 

Mambo is Free Software released under the GNU/GPL License.
spacer