— home/planet/Desktop/datagrid420/datagrid.class.php 2007-09-29 04:09:50.000000000 +0200
+++ var/www/pedidos/datagrid/datagrid.class.php 2007-10-25 10:27:56.000000000 +0200
@@ -1359,9 +1361,13 @@ class DataGrid
$filter_field_operator = $table_field_name.”_operator”;
if(isset($fldValue[‘case_sensitive’]) && ($fldValue[‘case_sensitive’] != true)){
$fldTableField = $this->getLcaseFooByDbType().”(“.(($fldValue[‘table’] != “”) ? $fldValue[‘table’].”.” : “” ).$fldValue[‘field’].”)”;
+ if(strpos($fldTableField,’_’)!==false)
+ $fldTableField=str_replace(“_”,”.”,$fldTableField);
$fldTableFieldName = strtolower($_REQUEST[$this->unique_prefix.”_ff_”.$table_field_name]);
}else{
$fldTableField = (($fldValue[‘table’] != “”) ? $fldValue[‘table’].”.” : “” ).$fldValue[‘field’];
+ if(strpos($fldTableField,’_’)!==false)
+ $fldTableField=str_replace(“_”,”.”,$fldTableField);
$fldTableFieldName = $_REQUEST[$this->unique_prefix.”_ff_”.$table_field_name];
}
if(isset($fldValue[‘comparison_type’]) && (strtolower($fldValue[‘comparison_type’]) == “numeric”)){
@@ -1378,6 +1384,8 @@ class DataGrid
$this->sql_view .= ” $search_type_start $fldTableField “.substr($_REQUEST[$this->unique_prefix.”_ff_”.$filter_field_operator], 0, 4).” “.$comparison_type.” ‘”.$fldTableFieldName.”%’”;
}else if($_REQUEST[$this->unique_prefix.”_ff_”.$filter_field_operator] == “%like”){
$this->sql_view .= ” $search_type_start $fldTableField “.substr($_REQUEST[$this->unique_prefix.”_ff_”.$filter_field_operator], 1, 4).” “.$comparison_type.” ‘%”.$fldTableFieldName.”’”;
+ }else if($_REQUEST[$this->unique_prefix.”_ff_”.$filter_field_operator] == “%like%”){
+ $this->sql_view .= ” $search_type_start $fldTableField “.substr($_REQUEST[$this->unique_prefix.”_ff_”.$filter_field_operator], 1, 4).” “.$comparison_type.” ‘%”.$fldTableFieldName.”%’”;
}else{
$this->sql_view .= ” $search_type_start $fldTableField “.$_REQUEST[$this->unique_prefix.”_ff_”.$filter_field_operator].” $left_geresh”.$fldTableFieldName.”$left_geresh “;
}
@@ -1773,7 +1781,7 @@ class DataGrid
}
fclose($fe);
echo ””;
}
}
+ // FERNANDO FUNCIONES DE HASH SHA1
+ if (!file_exists($this->directory.’scripts/hash.js’)) {
+ echo ”
”;
+ }else{
+ echo “\n”;
+ }
// set WYSIWYG
echo “\n”;
+
+ // FERNANDO
+ echo ””;
+
}
function setCommonJavaScriptEnd(){
@@ -5067,6 +5106,7 @@ class DataGrid
$this->lang[‘like’] = “like”;
$this->lang[‘like%’] = “like%”; // “begins with”;
$this->lang[‘%like’] = “%like”; // “ends with”;
+ $this->lang[‘%like%’] = “%like%”; // “middle with”;
$this->lang[‘loading_data’] = “loading data…”;
$this->lang[‘max’] = “max”;
$this->lang[‘next’] = “next”;
@@ -5110,6 +5150,11 @@ class DataGrid
$this->lang[‘wrong_field_name’] = “Wrong field name”;
$this->lang[‘wrong_parameter_error’] = “Wrong parameter in _FIELD_: _VALUE_”;
$this->lang[‘yes’] = “Yes”;
+ $this->lang[‘export_to_excel_confirm’] = “Do you want to export datagrid content into export.cvs file?”;
+ $this->lang[‘export_to_xml_confirm’] = “Do you want to export datagrid content into export.xml file?”;
+ $this->lang[‘set_hash_pswd’] = “Set password to hash”;
+ $this->lang[‘intro_text_tohash’] = “Enter text to hash:”;
+ $this->lang[‘sort’] = “Sort this column”;
}
}