added testphone to db and giftcard notification.
This commit is contained in:
parent
b97d150fe1
commit
a275cb802e
1
db/migrate/000121_admin_testphone.sql
Normal file
1
db/migrate/000121_admin_testphone.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE `admin` ADD `testphone` VARCHAR( 12 ) NULL DEFAULT NULL;
|
||||
@ -133,7 +133,8 @@
|
||||
<tr class="track-fields">
|
||||
<td class="label-sub">Notify phone:</td>
|
||||
<td class="content-sub">
|
||||
<input type="text" id="notify_phone" value="<?=c::admin()->phone?>" name="notify_phone">
|
||||
|
||||
<input type="text" id="notify_phone" value="<?=c::admin()->testphone?>" name="notify_phone">
|
||||
<br />
|
||||
<span style="font-size:11px;">
|
||||
*Phone number that will receive a sms <br/>notification when this gift card is redeemed.
|
||||
|
||||
@ -136,10 +136,7 @@
|
||||
<li class="track-fields">
|
||||
<span>Notify phone</span>
|
||||
<span class="pull-right">
|
||||
<?php if ($_SESSION['admin'] && c::config()->testphone->{ $_SESSION[ 'username' ] } ) {
|
||||
$phone = c::config()->testphone->{ $_SESSION[ 'username' ] };
|
||||
} ?>
|
||||
<input type="text" id="notify_phone" value="<?php echo $phone; ?>" name="notify_phone">
|
||||
<input type="text" id="notify_phone" value="<?=c::admin()->testphone?>" name="notify_phone">
|
||||
</span>
|
||||
<hr/>
|
||||
<div class="note large">
|
||||
|
||||
@ -99,12 +99,7 @@
|
||||
<tr class="track-fields">
|
||||
<td class="label-sub">Notify phone:</td>
|
||||
<td class="content-sub">
|
||||
<?php
|
||||
if ($_SESSION['admin'] && c::config()->testphone->{ $_SESSION[ 'username' ] } ) {
|
||||
$phone = c::config()->testphone->{ $_SESSION[ 'username' ] };
|
||||
}
|
||||
?>
|
||||
<input type="text" id="notify_phone" value="<?php echo $phone; ?>" name="notify_phone">
|
||||
<input type="text" id="notify_phone" value="<?=c::admin()->testphone?>" name="notify_phone">
|
||||
<br />
|
||||
<span style="font-size:11px;">
|
||||
*Phone number that will receive a sms <br/>notification when this gift card is redeemed.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user