View Mode
Checkbox Enabled: 'tasFinished' =>array('header'=>"$tasFinished", 'type'=>'checkbox', 'width'=>'20px', 'align'=>'center', 'readonly'=>'false', 'maxlength'=>'-1', 'default'=>'', 'unique'=>'false', 'unique_condition'=>'', 'visible'=>'true', 'on_js_event'=>'', 'true_value'=>"1", 'false_value'=>"0"),
Checkbox Disabled: 'tasFinished' =>array('header'=>"$tasFinished", 'type'=>'checkbox', 'width'=>'20px', 'align'=>'center', 'readonly'=>'true', 'maxlength'=>'-1', 'default'=>'', 'unique'=>'false', 'unique_condition'=>'', 'visible'=>'true', 'on_js_event'=>'', 'true_value'=>"1", 'false_value'=>"0"),
Enum W/Array: "comInactive" =>array("header"=>"$comInactive", "type"=>"enum", "req_type"=>"", "width"=>"", "title"=>"", "readonly"=>"false", "maxlength"=>"", "default"=>"", "unique"=>"false", "unique_condition"=>"", "visible"=>"true", "on_js_event"=>"", "source"=>$fill_from_array_checkbox, "view_type"=>"checkbox", "multiple"=>"false"),
File: "cliRecFile"=>array("header"=>"cliRecFile", "type"=>"link", "field_key"=>"cliRecFile", "field_data"=>"cliRecFile", "rel"=>"", "title"=>"", "target"=>"_blank", "href"=>"client_records/records/{0}"),
Enum: "cliRecBloodType" =>array("header"=>"$cliRecBloodType","type"=>"enum","align"=>"center", "header_tooltip"=>"","text_length"=>"","case"=>"normal","width"=>"100px", 'source'=> $fill_from_array_cliBloodType),
Image: "cliRecImage1" =>array("header"=>"","type"=>"image",'image_width'=>'100','image_height'=>'100','target_path'=>'photo_catalog/','magnify'=>true,'magnify_type'=>'popup','magnify_power'=>'10',"align"=>"center","header_tooltip"=>"","text_length"=>"100","case"=>"normal"),
Money: "purTotalAmount" =>array("header"=>"$purTotalAmount","type"=>"money","sign"=>"$", 'decimal_places'=>'2' , 'dec_separator'=>'.' , 'thousands_separator'=>'.', "align"=>"center","header_tooltip"=>"","text_length"=>"120","case"=>"normal"),
Label W/O HTML Tags: "asunto" =>array("header"=>"Asunto", "type"=>"label_strip_tags", "align"=>"left", "header_tooltip"=>"", "case"=>"normal"),
**label_strip_tags @ datagrid.class.php**
case "label_strip_tags":
$fp_movable = $this->GetFieldProperty($field_name, "movable", 'view', 'normal');
$field_value_trim = trim(Helper::ConvertCase($field_value, 'lower', $this->langName));
$field_value = strip_tags($field_value);
if(($field_value_trim != '')
// we need this for right handling wysiwyg editor values
&& ($field_value_trim !== "<pre></pre>")
&& ($field_value_trim !== "<pre>".$this->nbsp."</pre>")
&& ($field_value_trim !== "<p></p>")
&& ($field_value_trim !== "<p>".$this->nbsp."</p>")){
// add handler of {field_name} holders in on_item_created
$temp = '';
$this->PrepareOnJSEventFields($on_js_event, $temp, $field_name, $row);
$output = $this->nbsp."<label class='".$this->cssClass."_dg_label' ".$title." ".$on_js_event.'>'.trim(nl2br($field_value))."</label>".$this->nbsp;
if($fp_movable === true || $fp_movable == 'true'){
$rid = $this->GetRecordID($row);
if(isset($_SESSION)){
if(!isset($_SESSION[$this->uniquePrefix.'-move'][$field_name])) $_SESSION[$this->uniquePrefix.'-move'][$field_name] = array();
$_SESSION[$this->uniquePrefix.'-move'][$field_name][] = $rid."#".$field_value;
}
if(!$this->isPrinting) $output .= " <a href='javascript:void(\"move=up\");' onclick='javascript:".$this->uniquePrefix."_doPostBack(\"move\",\"".Helper::EncodeParameter($rid, $this->safeMode)."\",\"".$this->urlString.'&'.$this->uniquePrefix."mode_parameters=up#".$field_name."\");'>";
$output .= "<img src='".$this->directory."images/up.png' style='margin-bottom:2px' border='0' alt='' title='".$this->lang['move_up']."' />";
if(!$this->isPrinting) $output .= "</a>";
if(!$this->isPrinting) $output .= "<a href='javascript:void(\"move=down\");' onclick='javascript:".$this->uniquePrefix."_doPostBack(\"move\",\"".Helper::EncodeParameter($rid, $this->safeMode)."\",\"".$this->urlString.'&'.$this->uniquePrefix."mode_parameters=down#".$field_name."\");'>";
$output .= "<img src='".$this->directory."images/down.png' style='margin-top:2px' border='0' alt='' title='".$this->lang['move_down']."' />";
if(!$this->isPrinting) $output .= "</a>";
}
}else{
$output = ' ';
}
break;