File: index.php

package info (click to toggle)
kalkun 0.8.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,340 kB
  • sloc: php: 30,659; javascript: 30,443; sql: 961; sh: 766; xml: 105; makefile: 41
file content (88 lines) | stat: -rw-r--r-- 3,752 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<script language="javascript" src="<?php echo $this->config->item('js_path');?>jquery-plugin/jquery.validate.min.js"></script>
<?php $this->load->view('js_stop_manager');?>

<div id="window_container">
	<div id="window_title">
		<div id="window_title_left"><?php echo tr('Stop Manager records'); ?></div>
		<div id="window_title_right">
			<?php echo form_open('plugin/stop_manager', array('class' => 'search_form')); ?>
			<input type="text" name="search_name" size="20" class="search_name" placeholder="<?php echo tr('Search'); ?>" value="<?php echo htmlentities($search_name, ENT_QUOTES);?>" />
			<?php echo form_close(); ?>
			&nbsp;
			<a href="<?php echo current_url();?>" class="nicebutton"><?php echo tr('Reset search'); ?></a>
			<a href="javascript:void(0);" id="addstopbutton" class="nicebutton">&#43; <?php echo tr('Add STOP record'); ?></a>
		</div>
	</div>

	<div id="window_content">

		<table class="nice-table" cellpadding="0" cellspacing="0">
			<tr>
				<th class="nice-table-left"><?php echo tr('No.', 'Number abbreviation'); ?></th>
				<th><?php echo tr('Phone number'); ?></th>
				<th><?php echo tr('Type'); ?></th>
				<th><?php echo tr('Original opt-out SMS'); ?></th>
				<th><?php echo tr('Insertion date'); ?></th>
				<th class="nice-table-right" colspan="1"><?php echo tr('Control'); ?></th>
			</tr>

			<?php if ($stoplist->num_rows() === 0): ?>
			<tr>
				<td colspan="6" style="border-left: 1px solid #000; border-right: 1px solid #000;">No STOP record found.</td>
			</tr>
			<?php else:
				foreach ($stoplist->result() as $tmp):
			?>
			<tr id="<?php echo htmlentities($tmp->id_stop_manager, ENT_QUOTES); ?>">
				<td class="nice-table-left"><?php echo htmlentities($number, ENT_QUOTES); ?></td>

				<td class="destination_number"><span style="display: none;" class="dest_number_intl"><?php echo htmlentities($tmp->destination_number, ENT_QUOTES); ?></span><?php echo htmlentities(phone_format_human($tmp->destination_number), ENT_QUOTES); ?></td>
				<td class="stop_type"><?php echo htmlentities($tmp->stop_type, ENT_QUOTES); ?></td>
				<td class="stop_message"><?php echo htmlentities($tmp->stop_message, ENT_QUOTES); ?></td>
				<td class="reg_date"><?php echo htmlentities($tmp->reg_date, ENT_QUOTES); ?></td>
				<td class="nice-table-right">
					<?php if ($tmp->destination_number && $tmp->stop_type): ?>
					<a href="javascript:void(0);" class="delete">
						<img class="ui-icon ui-icon-close" title="<?php echo tr('Delete'); ?>" />
					</a>
					<?php endif; ?>
				</td>
			</tr>

			<?php
			$number++;
			endforeach;
		endif;
		?>
			<tr>
				<th colspan="6" class="nice-table-footer">
					<div id="simplepaging">
						<?php if (is_null($this->input->post('search_name')))
		{
			echo $this->pagination->create_links();
		}
				?>
					</div>
				</th>
			</tr>

		</table>
		<br />
	</div>
</div>


<!-- Add STOP dialog -->
<div id="stop-dialog" title="<?php echo tr('Add STOP record'); ?>" class="dialog">
	<p id="validateTips"><?php echo tr('All form fields are required.'); ?></p>
	<?php echo form_open('plugin/stop_manager', array('id' => 'addStopForm', 'class' => 'addstopform')); ?>
	<fieldset>
		<label for="destination_number"><?php echo tr('Phone number'); ?></label>
		<input type="text" name="destination_number" id="destination_number" class="text ui-widget-content ui-corner-all" />
		<label for="stop_type"><?php echo tr('Type'); ?></label>
		<input type="text" name="stop_type" id="stop_type" class="text ui-widget-content ui-corner-all" />
		<label for="stop_message"><?php echo tr('Original opt-out SMS'); ?></label>
		<input type="text" name="stop_message" id="stop_message" class="text ui-widget-content ui-corner-all" />
	</fieldset>
	<?php echo form_close(); ?>
</div>