amp_check 2

hotfix/远程访问多媒体中心
lmrwork 8 years ago
parent 2a644367ca
commit 154c5caea0

@ -50,6 +50,7 @@ class InfoMetas_model extends CI_Model {
on im3.im_ic_id = im.im_ic_id and im2.im_key = 'AMP_SCHEMA'
WHERE im.im_key = 'AMP_JSON'
and c.ic_sitecode = ?
and c.ic_status = 1
and CONVERT(varchar, im2.im_value) = '1'
";
$query = $this->HT->query($sql, array($site_code));
@ -72,6 +73,7 @@ class InfoMetas_model extends CI_Model {
on im3.im_ic_id = im.im_ic_id and im2.im_key = 'AMP_SCHEMA'
WHERE im.im_key = 'AMP_JSON'
and c.ic_sitecode = ?
and c.ic_status = 1
and CONVERT(varchar, im2.im_value) <> '1'
";
$query = $this->HT->query($sql, array($site_code));

@ -81,7 +81,7 @@ $(function() {
&nbsp;
<span class="checkbox">
<label>
<input type="radio" name="amp" value="no" <?php if(!$amp == 'no') echo('checked'); ?>> 显示未转换AMP的信息
<input type="radio" name="amp" value="no" <?php if($amp == 'no') echo('checked'); ?>> 显示未转换AMP的信息
</label>
</span>
&nbsp;

Loading…
Cancel
Save