當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Fields::DecodeFields方法代碼示例

本文整理匯總了PHP中Fields::DecodeFields方法的典型用法代碼示例。如果您正苦於以下問題:PHP Fields::DecodeFields方法的具體用法?PHP Fields::DecodeFields怎麽用?PHP Fields::DecodeFields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Fields的用法示例。


在下文中一共展示了Fields::DecodeFields方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

 //	$data[] = array($job->lang['specialty'], $tpl->selection($job->GetSpecialties($edit['sphere_id']), 'specialty_id', $edit['specialty_id'], 'id="specialty_id"'));
 $data[] = array($job->lang['specialty'], $tpl->InputText('specialty', empty($edit['sphere_id']) ? $job->lang['sel_sphere'] : $edit['specialty'], 'id="specialty"'));
 if ($job->use_country) {
     $data[] = array($job->lang['country'], $tpl->selection($job->GetCountries('add'), 'country_id', $edit['country_id'], "id='country_id'"));
 }
 if ($job->use_city) {
     $data[] = array($job->lang['city'], $tpl->selection($job->GetCities($edit['country_id']), 'city_id', $edit['city_id'], "id='city_id'"));
 }
 foreach (Vacancy::$fields as $field_name => $values_array) {
     $data[] = array($job->lang[$field_name], $tpl->selection(array("" => $job->lang['no_show']) + $values_array, $field_name, $edit[$field_name]));
 }
 $data[] = array($job->lang['sex'], $tpl->selection(array(0 => $job->lang['no_show'], "M" => $job->lang['sex_man'], "W" => $job->lang['sex_woman']), 'sex', $edit['sex']));
 $data[] = array($job->lang['age'], $job->lang['from'] . $tpl->InputText('age_min', $edit['age_min'], 'size=10') . $job->lang['to'] . $tpl->InputText('age_max', $edit['age_max'], 'size=10'));
 $data[] = array($job->lang['salary'], $job->lang['from'] . $tpl->InputText('salary_min', $edit['salary_min'], 'size=10') . $job->lang['to'] . $tpl->InputText('salary_max', $edit['salary_max'], 'size=10') . " " . $tpl->selection(Job::$currecy_array, 'currency', $edit['currency']), $job->lang['salary_desc']);
 $data[] = array($job->lang['description'], $tpl->TextArea('description', $edit['description'], 'style="width:70%;height:80px;"'));
 foreach ($xfields->DecodeFields($edit['xfields']) as $fid => $field) {
     if (!empty($auto->lang[$field['title']])) {
         $field['title'] = $auto->lang[$field['title']];
     }
     $data[] = array($field['title'], $field['html'], $field['description']);
 }
 $data[] = array($job->lang['company'], $tpl->selection(array("" => $job->lang['vac_no_company']) + $job->GetCompaniesArray(), 'company_id', $edit['company_id'], 'id="company"'));
 $cdata[] = array($job->lang['contact_person'], $tpl->InputText('contact_person', $edit['contact_person']));
 $cdata[] = array($job->lang['email'], $tpl->InputText('email', $edit['email']));
 $cdata[] = array($job->lang['phone'], $tpl->InputText('phone', $edit['phone']));
 $tpl->echo = TRUE;
 if ($job->Errors) {
     $tpl->OpenTable();
     echo $job->lang['current_errors'] . "<ol>";
     foreach ($job->Errors as $error) {
         echo "<li>" . $error . "</li>";
開發者ID:dautushenka,項目名稱:Job_Centre,代碼行數:31,代碼來源:vacancies.php


注:本文中的Fields::DecodeFields方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。