zoneminder/web/skins/classic/views/js/export.js.php

20 lines
560 B
PHP
Raw Normal View History

<?php
2017-05-19 01:50:56 +08:00
if ( isset($_REQUEST['eids']) ) {
$eidParms = array();
foreach ( $_REQUEST['eids'] as $eid )
$eidParms[] = "eids[]=".validInt($eid);
?>
var eidParm = '<?php echo join( '&', $eidParms ) ?>';
<?php
2017-05-19 01:50:56 +08:00
} else {
?>
var eidParm = 'eid=<?php echo validInt($_REQUEST['eid']) ?>';
<?php
}
?>
var exportReady = <?php echo !empty($_REQUEST['generated'])?'true':'false' ?>;
var exportFile = '<?php echo !empty($_REQUEST['exportFile'])?validJsStr($_REQUEST['exportFile']):'' ?>';
2015-05-10 21:10:30 +08:00
var exportProgressString = '<?php echo addslashes(translate('Exporting')) ?>';