added testphone to db and giftcard notification.

This commit is contained in:
arzynik 2013-07-12 12:13:59 -07:00
parent b97d150fe1
commit a275cb802e
4 changed files with 5 additions and 11 deletions

View File

@ -0,0 +1 @@
ALTER TABLE `admin` ADD `testphone` VARCHAR( 12 ) NULL DEFAULT NULL;

View File

@ -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.

View File

@ -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">

View File

@ -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.