Fixed filter saving.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2092 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
fa83736ba8
commit
bc9c72fbcd
|
@ -208,7 +208,7 @@ if ( !empty($action) )
|
||||||
$filter_parms[] = "sort_asc=$sort_asc";
|
$filter_parms[] = "sort_asc=$sort_asc";
|
||||||
$filter_parms[] = "limit=$limit";
|
$filter_parms[] = "limit=$limit";
|
||||||
$filter_query_string = join( '&', $filter_parms );
|
$filter_query_string = join( '&', $filter_parms );
|
||||||
simpleQuery( "replace into Filters set Name = '$filter_name', Query = '$filter_query_string', AutoArchive = '$auto_archive', AutoVideo = '$auto_video', AutoUpload = '$auto_upload', AutoEmail = '$auto_email', AutoMessage = '$auto_message', AutoExecute = '$auto_execute', AutoExecuteCmd = '".addslashes($auto_execute_cmd)."', AutoDelete = '$auto_delete'" );
|
simpleQuery( "replace into Filters set Name = '$filter_name', Query = '$filter_query_string', AutoArchive = '$auto_archive', AutoVideo = '$auto_video', AutoUpload = '$auto_upload', AutoEmail = '$auto_email', AutoMessage = '$auto_message', AutoExecute = '$auto_execute', AutoExecuteCmd = '".addslashes($auto_execute_cmd)."', AutoDelete = '$auto_delete', Background = '$background'" );
|
||||||
$refresh_parent = true;
|
$refresh_parent = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,14 @@ for ( $i = 1; $i <= $trms; $i++ )
|
||||||
<input type="hidden" name="sort_field" value="<?= $sort_field ?>">
|
<input type="hidden" name="sort_field" value="<?= $sort_field ?>">
|
||||||
<input type="hidden" name="sort_asc" value="<?= $sort_asc ?>">
|
<input type="hidden" name="sort_asc" value="<?= $sort_asc ?>">
|
||||||
<input type="hidden" name="limit" value="<?= $limit ?>">
|
<input type="hidden" name="limit" value="<?= $limit ?>">
|
||||||
|
<input type="hidden" name="auto_archive" value="<?= $auto_archive ?>">
|
||||||
|
<input type="hidden" name="auto_video" value="<?= $auto_video ?>">
|
||||||
|
<input type="hidden" name="auto_upload" value="<?= $auto_upload ?>">
|
||||||
|
<input type="hidden" name="auto_email" value="<?= $auto_email ?>">
|
||||||
|
<input type="hidden" name="auto_message" value="<?= $auto_message ?>">
|
||||||
|
<input type="hidden" name="auto_execute" value="<?= $auto_execute ?>">
|
||||||
|
<input type="hidden" name="auto_execute_cmd" value="<?= $auto_execute_cmd ?>">
|
||||||
|
<input type="hidden" name="auto_delete" value="<?= $auto_delete ?>">
|
||||||
<center><table width="96%" align="center" border="0" cellspacing="1" cellpadding="0">
|
<center><table width="96%" align="center" border="0" cellspacing="1" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue