0000327
This commit is contained in:
parent
0120f057a6
commit
f6fa2203bd
@ -291,11 +291,11 @@ elseif ($_REQUEST['act'] == 'update')
|
|||||||
if ($is_insert)
|
if ($is_insert)
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO " . $ecs->table('hs_web') . " (domain, cname, ename, " .
|
$sql = "INSERT INTO " . $ecs->table('hs_web') . " (domain, cname, ename, " .
|
||||||
"tel,email,address,facebook,banner_text,slogon,index_banner,index_ytb,vrmap,vrmap2,location_map, " .
|
"tel,email,address,facebook,line, banner_text,slogon,index_banner,index_ytb,vrmap,vrmap2,location_map, " .
|
||||||
"location_desc,about_us,mdesc,mkeyword,image1,image2,image3,facility,rm_fac,".
|
"location_desc,about_us,mdesc,mkeyword,image1,image2,image3,facility,rm_fac,".
|
||||||
" cstamp, ustamp)" .
|
" cstamp, ustamp)" .
|
||||||
"VALUES ('$_POST[domain]', '$_POST[cname]','$_POST[ename]', " .
|
"VALUES ('$_POST[domain]', '$_POST[cname]','$_POST[ename]', " .
|
||||||
"'$_POST[tel]','$_POST[email]','$_POST[address]','$_POST[facebook]','$_POST[banner_text]','$_POST[slogon]','$_POST[index_banner]','$_POST[index_ytb]','$_POST[vrmap]','$_POST[vrmap2]','$_POST[location_map]',".
|
"'$_POST[tel]','$_POST[email]','$_POST[address]','$_POST[facebook]','$_POST[line]','$_POST[banner_text]','$_POST[slogon]','$_POST[index_banner]','$_POST[index_ytb]','$_POST[vrmap]','$_POST[vrmap2]','$_POST[location_map]',".
|
||||||
"'$_POST[location_desc]','$_POST[about_us]','$_POST[mdesc]','$_POST[mkeyword]','$_POST[image1]','$_POST[image2]','$_POST[image3]','$fac','$_POST[rm_fac]',".
|
"'$_POST[location_desc]','$_POST[about_us]','$_POST[mdesc]','$_POST[mkeyword]','$_POST[image1]','$_POST[image2]','$_POST[image3]','$fac','$_POST[rm_fac]',".
|
||||||
" '" . gmtime() . "', '". gmtime() ."')";
|
" '" . gmtime() . "', '". gmtime() ."')";
|
||||||
}
|
}
|
||||||
@ -319,6 +319,7 @@ elseif ($_REQUEST['act'] == 'update')
|
|||||||
"email = '$_POST[email]', " .
|
"email = '$_POST[email]', " .
|
||||||
"address = '$_POST[address]', " .
|
"address = '$_POST[address]', " .
|
||||||
"facebook = '$_POST[facebook]', " .
|
"facebook = '$_POST[facebook]', " .
|
||||||
|
"line = '$_POST[line]', " .
|
||||||
"slogon = '$_POST[slogon]', " .
|
"slogon = '$_POST[slogon]', " .
|
||||||
"index_ytb = '$_POST[index_ytb]', " .
|
"index_ytb = '$_POST[index_ytb]', " .
|
||||||
"vrmap = '$_POST[vrmap]', " .
|
"vrmap = '$_POST[vrmap]', " .
|
||||||
|
@ -87,6 +87,12 @@
|
|||||||
<td><input type="text" name="facebook" value="{$hs.facebook}" size="50" />
|
<td><input type="text" name="facebook" value="{$hs.facebook}" size="50" />
|
||||||
{$lang.require_field}</td>
|
{$lang.require_field}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Line</td>
|
||||||
|
<td>
|
||||||
|
<input type="text" name="line" value="{$hs.line}" size="50" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>BANNER文字</td>
|
<td>BANNER文字</td>
|
||||||
<td><input type="text" name="banner_text" value="{$hs.banner_text}" size="50" />
|
<td><input type="text" name="banner_text" value="{$hs.banner_text}" size="50" />
|
||||||
|
@ -73,9 +73,14 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="social">
|
<div class="social">
|
||||||
|
{if $site.line}
|
||||||
|
<a class="fb" href="{$site.line}" target="_blank"><i class="fa fa-comment"></i></a>
|
||||||
|
{/if}
|
||||||
<a href="mailto:{$site.email}" class="contactLink" data-mail="{$site.email}"><i class="fa fa-envelope"></i></a>
|
<a href="mailto:{$site.email}" class="contactLink" data-mail="{$site.email}"><i class="fa fa-envelope"></i></a>
|
||||||
<a href="tel:{$site.tel}"><i class="fa fa-phone"></i></a>
|
<a href="tel:{$site.tel}"><i class="fa fa-phone"></i></a>
|
||||||
|
{if $site.facebook}
|
||||||
<a class="fb" href="{$site.facebook}" target="_blank"><i class="fa fa-facebook"></i></a>
|
<a class="fb" href="{$site.facebook}" target="_blank"><i class="fa fa-facebook"></i></a>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="rightBox" id="headerBooking">
|
<div class="rightBox" id="headerBooking">
|
||||||
<a href="tel:{$site.tel}" target="_blank">來電訂房 / BOOKING</a>
|
<a href="tel:{$site.tel}" target="_blank">來電訂房 / BOOKING</a>
|
||||||
@ -285,8 +290,12 @@
|
|||||||
<div class="social">
|
<div class="social">
|
||||||
<a href="mailto:{$site.email}" class="contactLink" data-mail="{$site.email}"><i class="fa fa-envelope"></i></a>
|
<a href="mailto:{$site.email}" class="contactLink" data-mail="{$site.email}"><i class="fa fa-envelope"></i></a>
|
||||||
<a href="tel:{$site.tel}"><i class="fa fa-phone"></i></a>
|
<a href="tel:{$site.tel}"><i class="fa fa-phone"></i></a>
|
||||||
|
{if $site.facebook}
|
||||||
<a class="fb" href="{$site.facebook}" target="_blank"><i class="fa fa-facebook"></i></a>
|
<a class="fb" href="{$site.facebook}" target="_blank"><i class="fa fa-facebook"></i></a>
|
||||||
|
{/if}
|
||||||
|
{if $site.line}
|
||||||
|
<a class="fb" href="{$site.line}" target="_blank"><i class="fa fa-comment"></i></a>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="endArea">{$site.ename} © ALL RIGHTS RESERVED.</div>
|
<div class="endArea">{$site.ename} © ALL RIGHTS RESERVED.</div>
|
||||||
</div>
|
</div>
|
||||||
|
1
update.sql
Normal file
1
update.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE `ecs_hs_web` ADD `line` VARCHAR(100) NOT NULL DEFAULT '' AFTER `facebook`;
|
Loading…
Reference in New Issue
Block a user