Bug 203 - Added filtering on Notes field.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1601 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
8a04a85321
commit
914afba668
|
@ -885,12 +885,6 @@ function parseFilter( $save_to_session=false, $term_sep='&' )
|
||||||
case 'MonitorName':
|
case 'MonitorName':
|
||||||
$filter_sql .= 'M.'.preg_replace( '/^Monitor/', '', $$attr_name );
|
$filter_sql .= 'M.'.preg_replace( '/^Monitor/', '', $$attr_name );
|
||||||
break;
|
break;
|
||||||
case 'Name':
|
|
||||||
$filter_sql .= "E.Name";
|
|
||||||
break;
|
|
||||||
case 'Cause':
|
|
||||||
$filter_sql .= "E.Cause";
|
|
||||||
break;
|
|
||||||
case 'DateTime':
|
case 'DateTime':
|
||||||
$filter_sql .= "E.StartTime";
|
$filter_sql .= "E.StartTime";
|
||||||
break;
|
break;
|
||||||
|
@ -912,6 +906,8 @@ function parseFilter( $save_to_session=false, $term_sep='&' )
|
||||||
case 'TotScore':
|
case 'TotScore':
|
||||||
case 'AvgScore':
|
case 'AvgScore':
|
||||||
case 'MaxScore':
|
case 'MaxScore':
|
||||||
|
case 'Cause':
|
||||||
|
case 'Notes':
|
||||||
case 'Archived':
|
case 'Archived':
|
||||||
$filter_sql .= "E.".$$attr_name;
|
$filter_sql .= "E.".$$attr_name;
|
||||||
break;
|
break;
|
||||||
|
@ -930,6 +926,7 @@ function parseFilter( $save_to_session=false, $term_sep='&' )
|
||||||
case 'MonitorName':
|
case 'MonitorName':
|
||||||
case 'Name':
|
case 'Name':
|
||||||
case 'Cause':
|
case 'Cause':
|
||||||
|
case 'Notes':
|
||||||
$value = "'$value'";
|
$value = "'$value'";
|
||||||
break;
|
break;
|
||||||
case 'DateTime':
|
case 'DateTime':
|
||||||
|
|
|
@ -65,6 +65,7 @@ $attr_types = array(
|
||||||
'MonitorName' => $zmSlangAttrMonitorName,
|
'MonitorName' => $zmSlangAttrMonitorName,
|
||||||
'Name' => $zmSlangAttrName,
|
'Name' => $zmSlangAttrName,
|
||||||
'Cause' => $zmSlangAttrCause,
|
'Cause' => $zmSlangAttrCause,
|
||||||
|
'Notes' => $zmSlangAttrNotes,
|
||||||
'DateTime' => $zmSlangAttrDateTime,
|
'DateTime' => $zmSlangAttrDateTime,
|
||||||
'Date' => $zmSlangAttrDate,
|
'Date' => $zmSlangAttrDate,
|
||||||
'Time' => $zmSlangAttrTime,
|
'Time' => $zmSlangAttrTime,
|
||||||
|
@ -99,6 +100,7 @@ $sort_fields = array(
|
||||||
'Id' => $zmSlangAttrId,
|
'Id' => $zmSlangAttrId,
|
||||||
'Name' => $zmSlangAttrName,
|
'Name' => $zmSlangAttrName,
|
||||||
'Cause' => $zmSlangAttrCause,
|
'Cause' => $zmSlangAttrCause,
|
||||||
|
'Notes' => $zmSlangAttrNotes,
|
||||||
'MonitorName' => $zmSlangAttrMonitorName,
|
'MonitorName' => $zmSlangAttrMonitorName,
|
||||||
'DateTime' => $zmSlangAttrDateTime,
|
'DateTime' => $zmSlangAttrDateTime,
|
||||||
'Length' => $zmSlangAttrDuration,
|
'Length' => $zmSlangAttrDuration,
|
||||||
|
|
|
@ -107,6 +107,7 @@ $zmSlangAttrMaxScore = 'Max. Score';
|
||||||
$zmSlangAttrMonitorId = 'Monitor Id';
|
$zmSlangAttrMonitorId = 'Monitor Id';
|
||||||
$zmSlangAttrMonitorName = 'Monitor Name';
|
$zmSlangAttrMonitorName = 'Monitor Name';
|
||||||
$zmSlangAttrName = 'Name';
|
$zmSlangAttrName = 'Name';
|
||||||
|
$zmSlangAttrNotes = 'Notes';
|
||||||
$zmSlangAttrTime = 'Time';
|
$zmSlangAttrTime = 'Time';
|
||||||
$zmSlangAttrTotalScore = 'Total Score';
|
$zmSlangAttrTotalScore = 'Total Score';
|
||||||
$zmSlangAttrWeekday = 'Weekday';
|
$zmSlangAttrWeekday = 'Weekday';
|
||||||
|
|
Loading…
Reference in New Issue