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">
|
<tr class="track-fields">
|
||||||
<td class="label-sub">Notify phone:</td>
|
<td class="label-sub">Notify phone:</td>
|
||||||
<td class="content-sub">
|
<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 />
|
<br />
|
||||||
<span style="font-size:11px;">
|
<span style="font-size:11px;">
|
||||||
*Phone number that will receive a sms <br/>notification when this gift card is redeemed.
|
*Phone number that will receive a sms <br/>notification when this gift card is redeemed.
|
||||||
|
|||||||
@ -136,10 +136,7 @@
|
|||||||
<li class="track-fields">
|
<li class="track-fields">
|
||||||
<span>Notify phone</span>
|
<span>Notify phone</span>
|
||||||
<span class="pull-right">
|
<span class="pull-right">
|
||||||
<?php if ($_SESSION['admin'] && c::config()->testphone->{ $_SESSION[ 'username' ] } ) {
|
<input type="text" id="notify_phone" value="<?=c::admin()->testphone?>" name="notify_phone">
|
||||||
$phone = c::config()->testphone->{ $_SESSION[ 'username' ] };
|
|
||||||
} ?>
|
|
||||||
<input type="text" id="notify_phone" value="<?php echo $phone; ?>" name="notify_phone">
|
|
||||||
</span>
|
</span>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="note large">
|
<div class="note large">
|
||||||
|
|||||||
@ -99,12 +99,7 @@
|
|||||||
<tr class="track-fields">
|
<tr class="track-fields">
|
||||||
<td class="label-sub">Notify phone:</td>
|
<td class="label-sub">Notify phone:</td>
|
||||||
<td class="content-sub">
|
<td class="content-sub">
|
||||||
<?php
|
<input type="text" id="notify_phone" value="<?=c::admin()->testphone?>" name="notify_phone">
|
||||||
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">
|
|
||||||
<br />
|
<br />
|
||||||
<span style="font-size:11px;">
|
<span style="font-size:11px;">
|
||||||
*Phone number that will receive a sms <br/>notification when this gift card is redeemed.
|
*Phone number that will receive a sms <br/>notification when this gift card is redeemed.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user