if ($t_status == 'edit' && $this->Infotasks_model->reviwed($t_id, $t_status)) {
if ($t_status == 'edit' && $this->Infotasks_model->reviwed($t_id, $t_status)) {
if(!empty($author))
if (!empty($author)) {
{
$this->InfoSMS_model->add('task', $t_id, $t_a_id, $admin_info['OPI_Code'], 'Your proposal has been approved!');
$this->InfoSMS_model->add('task', $t_id, $t_a_id, $admin_info['OPI_Code'], 'Your proposal has been approved!');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been approved.', 'Your proposal has been approved!Please log in at <ahref="http://a.cdnch.com/author.php" target="_blank">http://a.cdnch.com/author.php</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been approved.', 'Your proposal has been approved!Please log in at <ahref="http://author.mycht.cn" target="_blank">http://author.mycht.cn</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been rejected.', 'Your proposal has been rejected: '.$refuse_msg.' Please log in at <ahref="http://a.cdnch.com/author.php" target="_blank">http://a.cdnch.com/author.php</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $author->a_name, $author->a_email, 'Your proposal has been rejected.', 'Your proposal has been rejected: '.$refuse_msg.' Please log in at <ahref="http://author.mycht.cn" target="_blank">http://author.mycht.cn</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $this->input->post('edit_a_name'), $this->input->post('edit_a_email'), 'Sign Up For China Highlights Online Writers Platform','Welcom to China Highlights Online Writers Platform:<br><ahref="'.site_url('/').'">China Highlights Online Writers Platform</a>');
$this->InfoSMS_model->send_mail('gavin', 'gavin@chinahighlights.com', $this->input->post('edit_a_name'), $this->input->post('edit_a_email'), 'Sign Up For China Highlights Online Writers Platform','Welcom to China Highlights Online Writers Platform:<br><ahref="http://author.mycht.cn">China Highlights Online Writers Platform</a>');
@ -355,75 +322,20 @@ class Keyworlds extends CI_Controller
}
}
}
}
//if ($rank['rank'] == '151') {
//if ($rank['rank'] == '151') {
if (1==2) {
if ($rank['rank'] != -1 and $rank['rank'] != -2 and $this->Keywordsrank_model->add_rank($v->kw_id, $rank['rank'], $rank['source'], $rank['engines'])) {
if ($engines!='yandex') $this->Keywords_model->update_time($v->kw_id);
}elseif ($rank['rank']!=-1 and $rank['rank']!=-2 and $this->Keywordsrank_model->add_rank($v->kw_id,$rank['rank'],$rank['source'],$rank['engines'])) {
if ($snoopy->fetch("$yahoourl/search;_ylt=A0SO8yDYHxBT6xQAWAFXNyoA?p=$search_worlds&n=100&ei=UTF-8&va_vt=any&vo_vt=any&ve_vt=any&vp_vt=any&vst=0&vf=all&vm=i&fl=0&fr=sfp&b=$start&pstart=$pstart")) {
{
$response = $snoopy->results;
$response = $snoopy->results;
//分析yahoo搜索结果,计算排名
//分析yahoo搜索结果,计算排名
//出现被屏蔽情况
//出现被屏蔽情况
@ -602,74 +508,12 @@ class Keyworlds extends CI_Controller
}
}
}
}
}
}
}
} else {
else
{
$rank['rank'] = -1;
$rank['rank'] = -1;
}
}
return($rank);
return($rank);
}
}
//计算关键词在百度搜索引擎的排名
public function get_search_content_by_baidu($keyworlds,$site_url='www.guilincits.com',$page=1,$sitecode=false)
@ -255,8 +225,7 @@ class Infotasks_model extends CI_Model
}
}
//承接任务
//承接任务
function undertake($t_id,$a_id)
function undertake($t_id, $a_id) {
{
$sql = "UPDATE infotasks \n"
$sql = "UPDATE infotasks \n"
. "SET t_a_id = ? \n"
. "SET t_a_id = ? \n"
. "WHERE t_id = ?";
. "WHERE t_id = ?";
@ -265,8 +234,7 @@ class Infotasks_model extends CI_Model
}
}
//取消任务
//取消任务
function canceltake($t_id)
function canceltake($t_id) {
{
$sql = "UPDATE infotasks \n"
$sql = "UPDATE infotasks \n"
. "SET t_a_id = 0 \n"
. "SET t_a_id = 0 \n"
. "WHERE t_id = ?";
. "WHERE t_id = ?";
@ -275,8 +243,7 @@ class Infotasks_model extends CI_Model
}
}
//根据不同状态获取任务列表
//根据不同状态获取任务列表
public function get_tasks_list($t_status=false,$t_ht_op_code=false,$t_a_id=false,$t_td_type=false,$start_date=false,$end_date=false,$tasktitle=false,$page_flag=false)
<inputname="sur_name[]"class="common_input form-control input-sm nopadding-R"placeholder=""style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in this Sur name!">
<inputname="given_name[]"class="common_input form-control input-sm nopadding-R"placeholder=""style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in this Given name!">
</div>
</div>
</div>
</div>
</div>
</div>
<divclass="form-group col-sm-4 nopadding-R">
<labelclass="">Passport No.</label>
<inputtype="text"class="form-control input-sm common_input"name="passport[]"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your passport!"autocomplete="off">
</div>
<divclass="form-group col-sm-5 nopadding-R">
<labelclass="">Passport Expiration Date</label>
<divclass="input-groups date">
<inputclass="form-control input-sm common_input datepicker"type="text"name="passport_expiration_date[]"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your passport expiration date!"autocomplete="off"style="color:#333333 !important;">
</div>
</div>
<divclass="form-group col-sm-4 nopadding-R">
<labelclass="">Birthday</label>
<divclass="input-groups date "data-date="1970-05-20">
<inputclass="form-control input-sm common_input bd_datepicker"type="text"name="birthday[]"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your birthday!"autocomplete="off"style="color:#333333 !important;">
<inputtype="text"name="landline"value=""class="common_input form-control input-sm"placeholder="Land line"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your Contact Land line.!">
</div>
<divclass="col-xs-13 nopadding">
<inputtype="text"name="mobile"value=""class="common_input form-control input-sm"placeholder="Mobile"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your Contact Mobile.!">
<inputname="address_street"class="form-control input-sm"placeholder="Street"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<inputname="address_city"class="form-control input-sm nopadding"placeholder="City"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<inputname="address_state"class="form-control input-sm nopadding"placeholder="State"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<inputname="address_country"class="form-control input-sm nopadding"placeholder="Country"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<inputtype="text"class="form-control input-sm"name="arrive_flight"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your Flight No.!">
</div>
<divclass="form-group col-sm-6 nopadding-R">
<label>Arrival time</label>
<divclass="input-groups date">
<inputclass="form-control input-sm f_datepicker"type="text"name="arrive_time"value=""autocomplete="off"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your arrival time!"style="color:#333333 !important;">
</div>
</div>
<divclass="form-group col-sm-6 nopadding-R">
<label>Departure China Flight no.</label>
<inputtype="text"class="form-control input-sm"name="departure_flight"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your flight no.!">
</div>
<divclass="form-group col-sm-6 nopadding-R">
<label>Departure time</label>
<divclass="input-groups date ">
<inputclass="form-control input-sm f_datepicker"type="text"name="depart_time"value=""autocomplete="off"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your departure time!"style="color:#333333 !important;">
<labelclass="col-sm-9 control-label nopadding-L">Contact person name</label>
<divclass="col-sm-13 nopadding">
<inputtype="text"class="form-control input-sm"name="emergency_person_name"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your emergency contact person name!">
<inputtype="text"class="form-control input-sm"name="emergency_email"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your email!">
</div>
</div>
<divclass="form-group col-sm-13">
<labelclass="col-sm-9 control-label nopadding-L">Relationship with him/her</label>
<divclass="col-sm-13 nopadding">
<inputtype="text"class="form-control input-sm"name="emergency_relationship"placeholder="eg: He is Sue’s father"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in the relationship!">
<inputtype="text"class="form-control input-sm"name="emergency_telephone"placeholder="country code + area code + land line"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your telephone no!">
Sur name/First and Middle name<ahref="javascript:void(0);"data-toggle="modal"data-target="#sampleModal"> (Sample ▼)</a>
</div>
</label>
<divclass="row">
<divclass="col-xs-7 nopadding-R">
<selectclass="form-control input-sm nopadding select_gender"name="gender[]"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your gender!">
<optionvalue="-">gender</option>
<optionvalue="100001">Mr</option>
<optionvalue="100003">Ms</option>
</select>
</div>
<divclass="col-xs-17 nopadding-L">
<divclass="input-group">
<divclass="form-control input-sm nopadding">
<divclass="col-xs-11 nopadding">
<inputname="sur_name[]"class="common_input form-control input-sm nopadding-R"placeholder="Sur name"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in this Sur name!">
<inputname="given_name[]"class="common_input form-control input-sm nopadding-R"placeholder="First and Middle name"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in this Given name!">
<inputtype="text"class="form-control input-sm common_input"name="passport[]"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your passport!"autocomplete="off">
<inputclass="form-control input-sm common_input datepicker"type="text"name="passport_expiration_date[]"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your passport expiration date!"autocomplete="off"style="color:#333333 !important;">
</div>
</div>
<divclass="form-group col-sm-4 nopadding-R">
<labelclass="visible-xs-block">Birthday</label>
<divclass="input-groups date "data-date="1970-05-20">
<inputclass="form-control input-sm common_input bd_datepicker"type="text"name="birthday[]"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your birthday!"autocomplete="off"style="color:#333333 !important;">
<inputtype="text"name="landline"value=""class="common_input form-control input-sm"placeholder="Land line"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your Contact Land line.!">
</div>
<divclass="col-xs-13 nopadding">
<inputtype="text"name="mobile"value=""class="common_input form-control input-sm"placeholder="Mobile"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your Contact Mobile.!">
<inputname="address_street"class="input_home_address form-control input-sm"placeholder="Street"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<inputname="address_city"class="input_home_addressform-control input-sm nopadding"placeholder="City"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<inputname="address_state"class="input_home_addressform-control input-sm nopadding"placeholder="State"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<inputname="address_country"class="input_home_addressform-control input-sm nopadding"placeholder="Country"style="border:none;height:28px;"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your home address!">
<h4class="text-red">Flight Information <spanclass="text-muted"style="font-size:15px;">(please skip this if your don’t need airport pick up and drop off service)</span></h4>
</div>
<divclass="col-xs-24 flight-info-box">
<divclass="form-group col-sm-6 nopadding">
<label>Arrival China Flight No.</label>
<inputtype="text"class="form-control input-sm"name="arrive_flight"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your Flight No.!">
</div>
<divclass="form-group col-sm-6 nopadding-R">
<label>Arrival time</label>
<divclass="input-groups date">
<inputclass="form-control input-sm f_datepicker"type="text"name="arrive_time"value=""autocomplete="off"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your arrival time!"style="color:#333333 !important;">
</div>
</div>
<divclass="form-group col-sm-6 nopadding-R">
<label>Departure China Flight no.</label>
<inputtype="text"class="form-control input-sm"name="departure_flight"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your flight no.!">
</div>
<divclass="form-group col-sm-6 nopadding-R">
<label>Departure time</label>
<divclass="input-groups date ">
<inputclass="form-control input-sm f_datepicker"type="text"name="depart_time"value=""autocomplete="off"data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your departure time!"style="color:#333333 !important;">
<labelclass="col-sm-9 control-label nopadding-L">Contact person name</label>
<divclass="col-sm-13 nopadding">
<inputtype="text"class="form-control input-sm"name="emergency_person_name"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your emergency contact person name!">
<inputtype="text"class="form-control input-sm"name="emergency_email"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your email!">
</div>
</div>
<divclass="form-group col-sm-13">
<labelclass="col-sm-9 control-label nopadding-L">Relationship with him/her</label>
<divclass="col-sm-13 nopadding">
<inputtype="text"class="form-control input-sm"name="emergency_relationship"placeholder="eg: He is Sue’s father"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in the relationship!">
<inputtype="text"class="form-control input-sm"name="emergency_telephone"placeholder="country code + area code + land line"value=""data-trigger="manual"data-container="body"data-toggle="popover"data-placement="top"data-content="Please fill in your telephone no!">
<h3class="modal-title text-success"id="modal-title">Hmmmm... we can't find that page!<aclass="anchorjs-link"href="#modal-title"><spanclass="anchorjs-icon"></span></a></h3>
</div>
<divclass="modal-body"style="height:150px;">
<h4style="padding-top:10px;">For any change, please contact your travel advisor.</h4>
<p>Thanks for payment US$145 . The train tickets have already been issued. </p>
<p> You can collect the paper ticket(s) from now at any train station in mainland China. </p>
<p> Please present all passenger(s) original passport(s) and Ticket Pick Up No.E601014106 at any ticket collecting counters (in Chinese 取票窗口)of any railway stations in mainland China. They will then issue your paper train ticket(s). </p>
<td>20:40 Jun.06 Beijing Xi (West) Station(in Chinese 北京西火车站)</td>
</tr>
<tr>
<th><strong>Arrival</strong></th>
<td>08:31AM Jun.07 Xi'an Station(in Chinese 西安火车站) </td>
</tr>
<tr>
<th><strong>Class</strong></th>
<td>Soft Sleeper </td>
</tr>
</table>
<p>Kindly note below:</p>
<p> 1. The same passport that was used for booking should also be used for ticket collection. A renewed passport won't be acceptable even if the holder is the same person. The system does not allow us to change passport number or passenger name after issue ticket. Have to issue new ticket if wrong passport number or name.</p>
<p> 2. There is no further fee if collect train ticket(s) at the DEPARTURE station shown on your ticket(s). RMB 5 per ticket will be charged at a ticket counter at other stations. E.g. if you have booked Beijing-Shanghai and Shanghai-Beijing ticket(s), and you collect them all at Beijing, you will be charged RMB 5 per ticket for the Shanghai-Beijing ticket(s), but if you pick up the return leg ticket(s) separately in Shanghai you will avoid the charge.</p>
<p> 3. On departure day, please time your arrival wisely. If you are going to collect your tickets on departure day, we suggest you be at the station at least 1.5 hours ahead of the stated departure time to allow for waiting in queue at the ticket-counter, for security checks and for ticket checks.<br/>
If you’ve already collected before the departure day, it is also wise to be at the station at least 40 minutes ahead. </p>
<p> 4. Download railway station instructions, maps and tips at <ahref="http://www.chinahighlights.com/china-trains/station-map.htm">http://www.chinahighlights.com/china-trains/station-map.htm</a><br/>
<br/>
5.Terms & Conditions. <ahref="http://www.chinahighlights.com/china-trains/booking-policy.htm">http://www.chinahighlights.com/china-trains/booking-policy.htm</a></p>
Address: Building 6, Chuangyi Business Park, 70 Qilidian Road, Guilin, Guangxi, 541004, China<br/>
If you wish to share anything with my supervisor (Ms. Alex Yang), please feel free to send your email to <ahref="mailto:alex@chinahighlights.net">alex@chinahighlights.net</a>. </p>
var sms='<blockquote><pstyle="word-wrap:break-word;"data-long="'+smstext+'"data-short="'+data_short+'">'+data_short+other_html+'</p><small>'+myDate.toLocaleString();+'</small></blockquote>';
$subject='Your password for "http://a.chtcdn.com"';
$subject = 'Your password for "http://author.mycht.cn"';
$body='Your password for "http://a.chtcdn.com" : '.$userdata->a_password.'<br><br><br><br>For security please change your password once logged in.';
$body='Your password for "http://author.mycht.cn" : '.$userdata->a_password.'<br><br><br><br>For security please change your password once logged in.';
$lang['author_email_message_body']='You have a new message on the China Highlights Content Management System. Please log in at <ahref="http://i.chtcdn.com/info.php/author" target="_blank">http://i.chtcdn.com/info.php/author</a>';
$lang['author_email_message_body']='You have a new message on the China Highlights Content Management System. Please log in at <ahref="http://author.mycht.cn" target="_blank">http://author.mycht.cn</a>';
if(!empty($admin_info->a_sitecode) && trim($this->t_a_id)=="AND t.t_a_id= 0") $sql.= " AND (t.t_sitecode= '$admin_info->a_sitecode' or t.t_sitecode is null) ";
// if (!empty($admin_info->a_sitecode) && trim($this->t_a_id) == "AND t.t_a_id= 0")
// $sql.= " AND (t.t_sitecode= '$admin_info->a_sitecode' or t.t_sitecode is null) ";
$sql.= " AND t.t_sitecode= " . $this->HT->escape($this->config->item('site_code'));
@ -234,8 +204,7 @@ class Infotasks_model extends CI_Model
}
}
//根据不同状态获取任务列表
//根据不同状态获取任务列表
public function get_tasks_list($t_status=false,$t_ht_op_code=false,$t_td_type=false,$start_date=false,$end_date=false,$tasktitle=false,$page_flag=false)
<inputform="form_signup"type="text"id="a_bank"name="a_bank"placeholder="bank name or 'paypal'"value="<?phpechoisset($author)?$author->a_bank:false;?>">
<inputform="form_signup"type="text"id="a_bank"name="a_bank"placeholder="bank name or 'paypal'"value="<?phpechoisset($author)?$author->a_bank:false;?>">
<inputform="form_signup"class="input-xlarge"type="text"id="a_bank_card"name="a_bank_card"placeholder="Bank account number or paypal number"value="<?phpechoisset($author)?$author->a_bank_card:false;?>">
<inputform="form_signup"class="input-xlarge"type="text"id="a_bank_card"name="a_bank_card"placeholder="Bank account number or paypal number"value="<?phpechoisset($author)?$author->a_bank_card:false;?>">
<spanlang="EN-US">1. The user agrees to write/edit web
<spanlang="EN-US">1. The user agrees to write/edit web
content for <ahref="http://www.chinahighlights.com">www.chinahighlights.com</a> to the following standard. For more details see <ahref="http://a.chtcdn.com/author.php/taskhall/notice/202003509">Freelancer
content for <ahref="http://www.chinahighlights.com">www.chinahighlights.com</a> to the following standard. For more details see <ahref="http://cht.mycht.cn/author.php/taskhall/notice/202003509">Freelancer