示例#1
0
<?php

echo script_tag('js/jqwidgets/globalization/jquery.global.js');
echo script_tag('js/jqwidgets/globalization/jquery.glob.en-US.js');
?>
<script type="text/javascript">

var rowDetailTmp = '<form id="inline_schedule_edit" name="inline_schedule_edit"><div class="schd_error error hidden">Please complete all form fields</div><div class="inputBlockContainer"><div class="inputContainer"><label>Report Name:</label><input type="text" name="report_name" value=""><input type="hidden" name="report_id" value=""></div><div class="inputContainer"><label>Report Type:</label><select name="controller"><option value="reports">Price Trend Report</option><option value="violations">Violation Report</option><option value="overview">Pricing Overview</option><option value="violationoverview">Violation Overview</option></select><input type="hidden" name="contoller_function" value=""></div></div><div class="inputBlockContainer sch_prods"><div class="inputContainer"><label>Specific Product</label><input type="radio" name="report_products" value="productpricing"></div><div class="inputContainer"><label>Specific Group</label><input type="radio" name="report_products" value="group_report"></div></div><div class="inputBlockContainer"><label class="report_products_lbl">Product Name:</label><input type="text" name="report_products_val" class="report_products_val" value=""><input type="hidden" name="report_products_vals" value=""></div><div class="inputBlockContainer"><div class="inputContainer"><label>Report Schedule:</label><input type="text" name="report_datetime" class="report_datetime" size="12" value=""> <?php 
echo renderHourDropDown("hh");
?>
 : <?php 
echo renderMinuteDropDown("mm");
?>
 : <select name="ampm"><option value="am">am</option><option value="pm">pm</option></select></div><div class="inputContainer"><label>Recurring:</label><select name="report_recursive_frequency" onchange="markRecursive(this.value)"><option value="0">None</option><option value="1">Every Day</option><option value="7">Every Week</option><option value="31">Every Month</option><option value="365">Every Year</option></select></div></div><div class="inputBlockContainer"><label>Emails:</label><input type="text" name="email_addresses" value=""><div class="email_container"></div></div><div class="button redButton"><div class="buttonCornerL"></div><input type="button" class="save_schedule" name="save_schedule" value="Save Changes"></div><div class="button redButton"><div class="buttonCornerL"></div><input type="button" class="cancel_schedule jsLink" name="" value="Cancel/Close"></form>';

$(document).ready(function(){

	var schedUrl = '<?php 
echo base_url();
?>
schedule/schedule_reports_list?g=rando';
	var schDatafields = [
		{ name: 'check', type: 'boolean' },
		{ name: 'id', type: 'int' },
		{ name: 'report_id', type: 'int' },
		{ name: 'report_name' },
		{ name: 'display_type' },
		{ name: 'controller' },
		{ name: 'controller_function' },
		{ name: 'report_products_val' },
		{ name: 'report_datetime', type: 'date' },
示例#2
0
文件: index.php 项目: kostya1017/our
    						<div class="inputBlockContainer">
    							<label for="report_products_val" class="report_products_lbl">Product Name:</label>
    							<input type="text" name="report_products_val" class="report_products_val" value="">
    							<input type="hidden" name="report_products_vals" class="report_products_vals" value="">
    						</div>
    
    						<div class="inputBlockContainer">
    							<div class="inputContainer">
    								<label for="report_datetime">Report Schedule:</label>
    								<input type="text" name="report_datetime" id="report_datetime" class="report_datetime" size="12" value="">
    								<?php 
echo renderHourDropDown('hh');
?>
:
    								<?php 
echo renderMinuteDropDown('mm');
?>
:
    								<select name="ampm" id="ampm">
    									<option value="am">am</option>
    									<option value="pm">pm</option>
    								</select>
    							</div>
    							<div class="inputContainer">
    								<label>Recurring:</label>
    								<select name="report_recursive_frequency" id="report_recursive_frequency" onchange="markRecursive(this.value)">
    									<option value="0">None</option>
    									<option value="1">Every Day</option>
    									<option value="7">Every Week</option>
    									<option value="31">Every Month</option>
    									<option value="365">Every Year</option>
示例#3
0
">
			<div class="lbel" id="report_schedule_label"><?php 
echo false ? 'Starting' : 'Report Schedule';
?>
:</div>
			<div class="lbl_inpuCnt">
				<input type="text" name="report_datetime" id="report_datetime" size="12" value="<?php 
echo date('m-d-Y', strtotime($report_info['report_datetime']));
?>
" />
				<?php 
echo renderHourDropDown('hh', date('g', $reportDate));
?>
:
				<?php 
echo renderMinuteDropDown('mm', date('i', $reportDate));
?>
:
				<select name="ampm" id="time">
					<option value="am" <?php 
echo $time === 'am' ? 'selected="selected"' : '';
?>
 >am</option>
					<option value="pm" <?php 
echo $time === 'pm' ? 'selected="selected"' : '';
?>
>pm</option>
				</select>
			</div>
			<div  class="clear"></div>
		</div>
示例#4
0
">
        
        						<div class="clear"></div>
        
        						<div class="automation">
        							<label for="report_datetime">Report Schedule:</label>
        							<input type="text" name="report_datetime" class="report_datetime" size="12" value="<?php 
        echo $data->report_datetime;
        ?>
">
        									<?php 
        echo renderHourDropDown('hh', $data->hh);
        ?>
:
        									<?php 
        echo renderMinuteDropDown('mm', $data->mm);
        $amSel = $data->ampm == 'am' ? ' selected' : '';
        $pmSel = $data->ampm == 'pm' ? ' selected' : '';
        ?>
:
        									<select name="ampm">
        										<option value="am"<?php 
        echo $amSel;
        ?>
>am</option>
        										<option value="pm"<?php 
        echo $pmSel;
        ?>
>pm</option>
        									</select>