merge heihedata branch r4465
This commit is contained in:
parent
42c2cba7bb
commit
b153bfcedf
|
@ -91,12 +91,12 @@ $(document).ready(function(){
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<label class="radio inline">
|
<label class="radio inline">
|
||||||
<input type="radio" id="inlineCheckbox1" name="language" value="zh"
|
<input type="radio" id="inlineCheckbox1" name="language" value="zh"
|
||||||
<?= isset($this->ev['language']) && $this->ev['language'] =='zh' ? 'checked="checked"':"" ?>
|
<?= isset($this->ev['language']) && $this->ev['language'] =='zh' ? 'checked="checked"':"" ?>
|
||||||
<?= !isset($this->ev['language']) || empty($this->ev['language']) ? 'checked="checked"':"" ?>
|
|
||||||
> zh
|
> zh
|
||||||
</label>
|
</label>
|
||||||
<label class="radio inline">
|
<label class="radio inline">
|
||||||
<input type="radio" id="inlineCheckbox1" name="language" value="en" <?= isset($this->ev['language']) && $this->ev['language'] =='en' ? 'checked="checked"':"" ?>> en
|
<input type="radio" id="inlineCheckbox1" name="language" value="en" <?= isset($this->ev['language']) && $this->ev['language'] =='en' ? 'checked="checked"':"" ?>
|
||||||
|
<?= !isset($this->ev['language']) || empty($this->ev['language']) ? 'checked="checked"':"" ?>> en
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -373,7 +373,7 @@ class Archive
|
||||||
}
|
}
|
||||||
|
|
||||||
//执行SQL语句后返回插入文章表的ID
|
//执行SQL语句后返回插入文章表的ID
|
||||||
$sql = "INSERT INTO ".$this->tbl_archives." (userid,title,description,image,source,ts_published,is_pub,body)
|
$sql = "INSERT INTO ".$this->tbl_archives." (userid,title,description,image,source,ts_published,is_pub,body,language)
|
||||||
VALUES (
|
VALUES (
|
||||||
".$data['userid'].",
|
".$data['userid'].",
|
||||||
".$data['title'].",
|
".$data['title'].",
|
||||||
|
@ -382,7 +382,8 @@ class Archive
|
||||||
".$data['source'].",
|
".$data['source'].",
|
||||||
".$data['ts_published'].",
|
".$data['ts_published'].",
|
||||||
".$data['is_pub'].",
|
".$data['is_pub'].",
|
||||||
".$data['body']."
|
".$data['body'].",
|
||||||
|
".$data['language']."
|
||||||
)
|
)
|
||||||
RETURNING id";
|
RETURNING id";
|
||||||
try{
|
try{
|
||||||
|
@ -434,7 +435,8 @@ class Archive
|
||||||
source=".$data['source'].",
|
source=".$data['source'].",
|
||||||
ts_published=".$data['ts_published'].",
|
ts_published=".$data['ts_published'].",
|
||||||
is_pub=".$data['is_pub'].",
|
is_pub=".$data['is_pub'].",
|
||||||
body=".$data['body']."
|
body=".$data['body'].",
|
||||||
|
language=".$data['language']."
|
||||||
WHERE id=$aid";
|
WHERE id=$aid";
|
||||||
try{
|
try{
|
||||||
if($this->db->exec($sql))
|
if($this->db->exec($sql))
|
||||||
|
|
Loading…
Reference in New Issue