select All Type (submit page)
Author Message
c0rrupt
Administrator


Posts: 251
Joined: Mar 2010
Post: #1
select All Type (submit page)
0
0
Open submit.php

Find:
PHP Code: (Select All)
</head

Paste Befor:

PHP Code: (Select All)
<script type="text/javascript">
<!--
function 
selectAll() {
  
void(d=document);
  
void(el=d.getElementsByTagName('INPUT'));

  for(
i=0;i<el.length;i++)
  
void(el[i].checked=1)
}


function 
UnselectAll() {
  
void(d=document);
  
void(el=d.getElementsByTagName('INPUT'));

  for(
i=0;i<el.length;i++)
  
void(el[i].checked=0)
}

function 
slctall() {
var 
se document.getElementsByName("type[]");

  for(var 
i=0i<se.lengthi++) {
   
se[i].value document.getElementById("suBtype").value;
  }
}
//-->
</script> 


Find:

<tr><td>Title</td><td>URL</td><td>Type</td></tr>


Paste After:


PHP Code: (Select All)
<tr><td colspan="3" align="right"><select id="suBtype" onchange="slctall(this.id);this.blur();" style="font-size:10px;padding:2px;">
<
option value="" selected="selected">Select All</option>
<?
php foreach($core->allowed_types as $at) { echo '<option value="'.$at.'">'.$at.'</option>'; } ?></select></td></tr> 

Be sure to visit WCDDL.org Affiliates
04-17-2010 03:00 AM
nirav5300
Newbie


Posts: 6
Joined: Apr 2010
Post: #2
select All Type (submit page)
0
0
thanks working gr8
04-27-2010 06:10 AM
c0rrupt
Administrator


Posts: 251
Joined: Mar 2010
Post: #3
select All Type (submit page)
0
0
no prbs mate Smile

Be sure to visit WCDDL.org Affiliates
04-27-2010 06:22 AM




User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.