Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
echo showSectionHead($spTextPanel["Alerts"]);
3
$searchFun = "scriptDoLoadPost('$pgScriptPath', 'listform', 'content')";
4
?>
5
<form name="listform" id="listform" onsubmit="<?php echo $searchFun?>">
6
<table width="60%" class="search">
7
	<tr>
8
		<th><?php echo $spText['button']['Search']?>: </th>
9
		<td><input type="text" name="keyword" value="<?php echo htmlentities($post['keyword'], ENT_QUOTES)?>"></td>
10
		<th><?php echo $spText['common']['Category']?>: </th>
11
		<td>
12
			<select name="alert_category" onchange="<?php echo $searchFun?>">
13
				<option value="">-- <?php echo $spText['common']['Select']?> --</option>
14
				<?php
15
				foreach ($alertCategory as $cat => $catLabel) {
16
				    $selectType = ($cat == $post['alert_category']) ? "selected" : "";
17
					?>
18
					<option value="<?php echo $cat?>" <?php echo $selectType; ?> ><?php echo $catLabel?></option>
19
					<?php
20
				}
21
				?>
22
			</select>
23
		</td>
24
	</tr>
25
	<tr>
26
		<th><?php echo $spText['common']['Period']?>:</th>
27
    	<td colspan="3">
28
    		<input type="text" value="<?php echo $fromTime?>" name="from_time"/>
29
    		<input type="text" value="<?php echo $toTime?>" name="to_time"/>
30
			<script>
31
			$(function() {
32
				$( "input[name='from_time'], input[name='to_time']").datepicker({dateFormat: "yy-mm-dd"});
33
			});
34
		  	</script>
35
			&nbsp;&nbsp;
36
			<a href="javascript:void(0);" onclick="<?php echo $searchFun?>" class="actionbut"><?php echo $spText['button']['Show Records']?></a>
37
		</td>
38
	</tr>
39
</table>
40
 
41
<br><br>
42
<b>Current Time:</b> <?php echo date("Y-m-d H:i:s <b>T(P)</b>"); ?>
43
<?php echo $pagingDiv?>
44
<table width="100%" id="cust_tab">
45
	<tr class="listHead">
46
		<th><input type="checkbox" id="checkall" onclick="checkList('checkall')"></th>
47
		<th><?php echo $spText['common']['Id']?></th>
48
		<th><?php echo $spText['common']['Category']?></th>
49
		<th><?php echo $spText['label']['Subject']?></th>
50
		<th><?php echo $spText['common']['Details']?></th>
51
		<th><?php echo $spText['label']['Updated']?></th>
52
		<th><?php echo $spText['common']['Action']?></th>
53
	</tr>
54
	<?php
55
	$colCount = 7;
56
	if (count($list) > 0) {
57
		foreach ($list as $listInfo) {
58
		    $alertLink = scriptAJAXLinkHrefDialog($pgScriptPath, 'content', "sec=alert_info&id=".$listInfo['id'], $listInfo['id']);
59
			?>
60
			<tr class="table-<?php echo $listInfo['alert_type']?>">
61
				<td style="width: 20px;"><input type="checkbox" name="ids[]" value="<?php echo $listInfo['id']?>"></td>
62
				<td><?php echo $alertLink?></td>
63
				<td><?php echo $alertCategory[$listInfo['alert_category']]?></td>
64
				<td><?php echo stripslashes($listInfo['alert_subject'])?></td>
65
				<td><?php echo stripslashes($listInfo['alert_message'])?></td>
66
				<td><?php echo $listInfo['alert_time']?></td>
67
				<td>
68
					<select name="action" id="action<?php echo $listInfo['id']?>" onchange="doAction('<?php echo $pgScriptPath?>', 'content', 'id=<?php echo $listInfo['id']?>&pageno=<?php echo $pageNo?>', 'action<?php echo $listInfo['id']?>')">
69
						<option value="select">-- <?php echo $spText['common']['Select']?> --</option>
70
						<option value="delete_alert"><?php echo $spText['common']['Delete']?></option>
71
					</select>
72
				</td>
73
			</tr>
74
			<?php
75
		}
76
	}else{
77
		echo showNoRecordsList($colCount);
78
	}
79
	?>
80
</table>
81
<?php
82
$delFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('$pgScriptPath', 'listform', 'content', '&sec=delete_all_alerts&pageno=$pageNo')";
83
?>
84
<table width="100%" class="actionSec">
85
	<tr>
86
    	<td style="padding-top: 6px;" class="left">
87
         	<a onclick="<?php echo $delFun?>" href="javascript:void(0);" class="actionbut">
88
         		<?php echo $spText['common']['Delete']?>
89
         	</a>
90
    	</td>
91
	</tr>
92
</table>
93
</form>