0000327
This commit is contained in:
parent
0120f057a6
commit
f6fa2203bd
@ -200,12 +200,12 @@ elseif ($_REQUEST['act'] == 'update')
|
||||
// get_image_path($_REQUEST[goods_id], $row['goods_thumb'], true, 'goods', true);
|
||||
}
|
||||
|
||||
$original_img = $image->upload_image($_FILES['index_banner']); // 原始图片
|
||||
if ($original_img === false)
|
||||
{
|
||||
sys_msg($image->error_msg(), 1, array(), false);
|
||||
}
|
||||
$index_banner = $original_img; // 商品图片
|
||||
$original_img = $image->upload_image($_FILES['index_banner']); // 原始图片
|
||||
if ($original_img === false)
|
||||
{
|
||||
sys_msg($image->error_msg(), 1, array(), false);
|
||||
}
|
||||
$index_banner = $original_img; // 商品图片
|
||||
|
||||
}
|
||||
}
|
||||
@ -291,11 +291,11 @@ elseif ($_REQUEST['act'] == 'update')
|
||||
if ($is_insert)
|
||||
{
|
||||
$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,".
|
||||
" cstamp, ustamp)" .
|
||||
"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]',".
|
||||
" '" . gmtime() . "', '". gmtime() ."')";
|
||||
}
|
||||
@ -319,6 +319,7 @@ elseif ($_REQUEST['act'] == 'update')
|
||||
"email = '$_POST[email]', " .
|
||||
"address = '$_POST[address]', " .
|
||||
"facebook = '$_POST[facebook]', " .
|
||||
"line = '$_POST[line]', " .
|
||||
"slogon = '$_POST[slogon]', " .
|
||||
"index_ytb = '$_POST[index_ytb]', " .
|
||||
"vrmap = '$_POST[vrmap]', " .
|
||||
|
@ -87,6 +87,12 @@
|
||||
<td><input type="text" name="facebook" value="{$hs.facebook}" size="50" />
|
||||
{$lang.require_field}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Line</td>
|
||||
<td>
|
||||
<input type="text" name="line" value="{$hs.line}" size="50" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BANNER文字</td>
|
||||
<td><input type="text" name="banner_text" value="{$hs.banner_text}" size="50" />
|
||||
|
@ -73,9 +73,14 @@
|
||||
</ul>
|
||||
</nav>
|
||||
<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="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>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="rightBox" id="headerBooking">
|
||||
<a href="tel:{$site.tel}" target="_blank">來電訂房 / BOOKING</a>
|
||||
@ -285,8 +290,12 @@
|
||||
<div class="social">
|
||||
<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>
|
||||
{if $site.facebook}
|
||||
<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 class="endArea">{$site.ename} © ALL RIGHTS RESERVED.</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