1st BACKUP BACKUP BACKUP !!!
Open: include/inc_lib/general.inc.php
arround line 164
After:
Code: Select all
function is_checked($c, $chkvalue, $xml=0) {
if(strval($c) == strval($chkvalue)) {
echo (!$xml) ? ' checked' : ' checked="checked"' ;
}
}
Code: Select all
function is_checked_disabled($c, $chkvalue, $xml=0) {
// Addone fo JS checkbox
if(strval($c) == strval($chkvalue)) {
echo ' disabled';
}
}
Open: /include/inc_tmpl/admin.structform.tmpl.php
arround line 119
Replace this code:
Code: Select all
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #D9DEE3;">
<tr style="padding-top:3px;">
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="0"<?php is_checked(0, intval($acat_order[0])) ?>></td>
<td> <?php echo $BL['be_admin_struct_ordermanual'] ?> </td>
<td rowspan="4"> </td>
<td><input type="radio" name="acat_ordersort" value="0"<?php is_checked(0, intval($acat_order[1])) ?>></td>
<td> <?php echo $BL['be_admin_struct_orderasc'] ?> </td>
</tr>
<tr>
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="2"<?php is_checked(2, $acat_order[0]) ?>></td>
<td> <?php echo $BL['be_admin_struct_orderdate'] ?> </td>
<td><input type="radio" name="acat_ordersort" value="1"<?php is_checked(1, $acat_order[1]) ?>></td>
<td> <?php echo $BL['be_admin_struct_orderdesc'] ?> </td>
</tr>
<tr>
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="4"<?php is_checked(4, $acat_order[0]) ?>></td>
<td> <?php echo $BL['be_admin_struct_orderchangedate'] ?> </td>
<td colspan="2"> </td>
</tr>
<tr style="padding-bottom:3px;">
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="6"<?php is_checked(6, $acat_order[0]) ?>></td>
<td> <?php echo $BL['be_admin_struct_orderstartdate'] ?> </td>
<td colspan="2"> </td>
</tr>
</table></td>
</tr>
Code: Select all
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #D9DEE3;">
<tr style="padding-top:3px;">
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="0"<?php is_checked(0, intval($acat_order[0])) ?> onClick="Disab (2)"></td>
<td> <?php echo $BL['be_admin_struct_ordermanual'] ?> </td>
<td rowspan="4"> </td>
<td><input type="radio" name="acat_ordersort" value="0"<?php is_checked(0, intval($acat_order[1])) ?><?php is_checked_disabled(0, intval($acat_order[0])) ?>></td>
<td> <?php echo $BL['be_admin_struct_orderasc'] ?> </td>
</tr>
<tr>
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="2"<?php is_checked(2, $acat_order[0]) ?> onClick="Disab (1)"></td>
<td> <?php echo $BL['be_admin_struct_orderdate'] ?> </td>
<td><input type="radio" name="acat_ordersort" value="1"<?php is_checked(1, $acat_order[1]) ?><?php is_checked_disabled(0, intval($acat_order[0])) ?>></td>
<td> <?php echo $BL['be_admin_struct_orderdesc'] ?> </td>
</tr>
<tr>
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="4"<?php is_checked(4, $acat_order[0]) ?> onClick="Disab (1)"></td>
<td> <?php echo $BL['be_admin_struct_orderchangedate'] ?> </td>
<td colspan="2"> </td>
</tr>
<tr style="padding-bottom:3px;">
<td><img src="img/leer.gif" width="3" height="1"></td>
<td><input type="radio" name="acat_order" value="6"<?php is_checked(6, $acat_order[0]) ?> onClick="Disab (1)"></td>
<td> <?php echo $BL['be_admin_struct_orderstartdate'] ?> </td>
<td colspan="2"> </td>
</tr>
</table></td>
</tr>
Before:
Code: Select all
<table width="538" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
<!--
function Disab (val) {
if(val=="1") {
editsitestructure.acat_ordersort[0].disabled=false;
editsitestructure.acat_ordersort[0].checked=false;
editsitestructure.acat_ordersort[1].disabled=false;
editsitestructure.acat_ordersort[1].checked=true;
}
if(val=="2") {
editsitestructure.acat_ordersort[0].disabled=true;
editsitestructure.acat_ordersort[0].checked=true;
editsitestructure.acat_ordersort[1].disabled=true;
editsitestructure.acat_ordersort[1].checked=false;
}
}
//-->
</script>
HNY!!!