ript:void(0)" onclick="textarea_resize(\''.$id.'\', 0); this.blur();" onmouseover="tip(this,\'Pomniejsz\')"> '.$row_tool.'
'; } else { return $t; } } function textarea($name, $width=200, $height=63, $value=false, $readonly=false, $disabled=false, $maxlength=false, $nonresize=false) { return $this-> textarea_id($name, $name, $width, $height, $value, $readonly, $disabled, $maxlength, $nonresize, $row_tool); } function tiny($name, $width, $height, $value=false) { global $CS; $CS->JS_HEAD[]=$this->_DIR.'/tinymce/tiny_mce.js'; return ' '; } // HIDDEN //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function hidden_id($name, $id, $value=false) { return ''; } function hidden($name, $value=false) { return $this->hidden_id($name, $name, $value); } function hidden_noid($name, $value=false) { return ''; } // FILE ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function file_id($name, $id, $width=250) { global $CS; if(empty($id)) $id=$name; $size=round(($width-110)*0.195); if(ADMIN===true) { return ' interactive('input').' name="'.$name.'" id="'.$id.'" onchange="document.getElementById(\'_'.$id.'\').value=this.value" /> '; } else { return ' interactive('input').' name="'.$name.'" id="'.$id.'" onchange="document.getElementById(\'_'.$id.'\').value=this.value" /> '; } } function file($name, $width=250) { return $this->file_id($name, $name, $width); } // PICKERS ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function kalendarz() { $a=func_get_args(); return call_user_func_array(array($this, 'calendar'), $a); } /** * * @global type $CS * @param type $name * @param type $value * @param string $format * @param string $date_sep * @param string $time_sep * @param type $readonly * @param type $disabled * @param type $id * @return type\ */ function calendar($name, $value=false, $formatdaty=false, $formatczasu=false, $readonly=false, $disabled=false, $id=false) { global $CS; $CS->JS_HEAD[]=JS.'/timepicker/timepicker.js'; if($value==false) $value = date("Y-m-d H:i:s",time()); if(empty($id)) $id=$name; $dttype = "datetimepicker"; if($formatdaty && $formatczasu) $dttype = "datetimepicker"; else if($formatdaty) $dttype = "datetimepicker"; else if($formatczasu) $dttype = "timepicker"; $autoexec=' $(function() { $( "#'.$id.'" ).'.$dttype.'({ timeFormat:"'.$formatczasu.'",dateFormat:"'.$formatdaty.'", showOn: "button", buttonImage: "../components/icons/datepicker-calendar.gif", buttonImageOnly: true, showTime:false }); '.(!empty($value) && $value!='0000-00-00'?'$( "#'.$id.'" ).'.$dttype.'("setDate", (new Date("'.date("Y/m/d H:i", strtotime($value)).'")));':'').' });'; if(ADMIN===true) { return ' interactive('input').(!empty($autoexec) ? ' autoexec=\''.$autoexec.'\'':'').($readonly==true ? ' readonly="readonly"':'').($disabled==true ? ' disabled="disabled"':'').' style="width:'.$width.'px" />  '; } else { if(strlen($format)==3) { $width=66; $maxlen=10; } if(strlen($format)==5) { $width=99; $maxlen=19; } return 'interactive('input').($readonly==true ? ' readonly="readonly"':'').($disabled==true ? ' disabled="disabled"':'').' style="text-align:center; width:'.$width.'px" maxlength="'.$maxlen.'" />'; } } /** * * @global type $CS * @param type $name * @param type $id * @param type $value * @return type */ function color_picker($name, $id=false, $value=false) { global $CS; $CS->CSS_HEAD[]=JS.'/colorpicker/colorpicker.css'; $CS->JS_HEAD[]=JS.'/colorpicker/colorpicker.js'; $CS->JS_HEAD[]=JS.'/jquery.mask.js'; if(empty($id)) $id=$name; if(!$value)$value="000000"; $mask='just_hex'; $autoexec=' $("#'.$id.', #'.$id.'_picker div").ColorPicker({ onSubmit: function(hsb, hex, rgb, el) { $("#'.$id.'").val(hex); $("#'.$id.'_picker div").css("background-color", "#"+hex); $(el).ColorPickerHide(); }, onBeforeShow: function () { $(this).ColorPickerSetColor($("#'.$id.'").val()); } }) .bind("keyup", function(){ $(this).ColorPickerSetColor(this.value); }); ';//$("#'.$id.'").mask("'.$mask.'"); color_picker("'.$id.'"); //$autoexec_type='color_picker'; //.(!empty($autoexec) ? ' autoexec=\''.$autoexec.'\'':'')(!empty($autoexec_type) ? ' autoexec_type=\''.$autoexec_type.'\'':'')..$this->interactive('input') return '
#
window.location='/bladwww.php';