Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function colorSelect(param)
- {
- x = param.id.replace(/[a-z]/ig, '');
- rezult = $("#colorPred" + x + " option:selected").text();
- rez = ($("#colorPred" + x)[0].selectedIndex);
- color = '';
- switch(rez)
- {
- case 1:
- color = '#ffbebe';
- break;
- case 2:
- color = '#95e28b';
- break;
- case 3:
- color = '#ffffff';
- break;
- case 4:
- color = '#fbe198';
- break;
- }
- colorTable(x, color);
- return false;
- }
- function reId(id)
- {
- if(id == '' || id == null) return '';
- x = id.replace(/[a-z]/ig, '');
- return x;
- }
- function editSelectColor($id, $color)
- {
- mysql_query("UPDATE `crm_agreement` SET `colorPred` = '".$color."' WHERE id = '".$id."'");
- echo "UPDATE `crm_agreement` SET `colorPred` = '".$color."' WHERE id = '".$id."'";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement