本文整理汇总了PHP中get_meta函数的典型用法代码示例。如果您正苦于以下问题:PHP get_meta函数的具体用法?PHP get_meta怎么用?PHP get_meta使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_meta函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
parent::__construct();
__extends($this);
$this->instance = get_instance();
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$this->load->library('install');
$this->load->library('file');
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
if ($this->instance->db_connected()) {
$this->load->library('users_global');
$this->data['options'] = get_meta('all');
trigger_inits();
// For Core menu extension, they are called after default menu.
/**
* Declare Notices : Notices are internal(system) or module/theme alert.
**/
set_core_vars('tendoo_notices', trigger_filters('declare_notices', array(get_core_vars('default_notices'))));
// @since 1.4
} else {
$this->users_global = FALSE;
$this->data['options'] = FALSE;
}
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:25,代码来源:error.php
示例2: index
public function index()
{
set_core_vars('options', $options = get_meta('all'), 'read_only');
if (riake('tendoo_registration_status', $options) == '0') {
$this->instance->url->redirect(array('error', 'code', 'registration-not-allowed'));
}
$this->instance->form_validation->set_rules('user_pseudo', translate('Pseudo'), 'trim|required|min_length[5]|max_length[15]');
$this->instance->form_validation->set_rules('user_password', __('Password'), 'trim|required|min_length[6]|max_length[15]');
$this->instance->form_validation->set_rules('user_password_confirm', __('Confirm Password'), 'trim|required|min_length[6]|max_length[15]');
$this->instance->form_validation->set_rules('user_mail', __('Email'), 'trim|valid_email|required');
$this->instance->form_validation->set_rules('user_sex', __('Sex'), 'trim|required|min_length[3]|max_length[4]');
$this->instance->form_validation->set_rules('priv_id', __('Select Privilege'), 'trim|min_length[11]');
$this->instance->form_validation->set_rules('captchaCorrespondance', __('Captcha Code'), 'trim|required|min_length[6]');
$this->instance->form_validation->set_rules('user_captcha', __('Captcha validation Code'), 'matches[captchaCorrespondance]|trim|required|min_length[6]');
if ($this->instance->form_validation->run()) {
$query = $this->instance->users_global->createUser($this->instance->input->post('user_pseudo'), $this->instance->input->post('user_password'), $this->instance->input->post('user_sex'), $this->instance->input->post('user_mail'), $active = 'FALSE', $this->instance->input->post('priv_id'));
if ($query == 'userCreated') {
$this->instance->url->redirect(array('login?notice=' . $query));
}
notice('push', fetch_notice_output($query));
}
set_core_vars('allowPrivilege', $this->roles->get_public_roles());
$this->instance->session->set_userdata('captcha_code', $this->instance->captcha->get());
set_core_vars('captcha', $this->instance->session->userdata('captcha_code'));
set_core_vars('pageTitle', sprintf(__('Create an account - %s '), riake('site_name', $options)));
set_page('title', get_core_vars('pageTitle'));
set_core_vars('body', $this->load->the_view('registration/createUser', true));
$this->load->view('header');
$this->load->view('global_body');
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:30,代码来源:registration.php
示例3: __construct
public function __construct()
{
parent::__construct();
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$this->instance = get_instance();
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$this->load->library('users_global');
$this->load->library('file');
$this->load->library('pagination');
$this->load->library('form_validation');
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
css_push_if_not_exists('font');
css_push_if_not_exists('../admin-lte/bootstrap/css/bootstrap.min');
css_push_if_not_exists('../admin-lte/font-awesome/font-awesome.4.3.0.min');
css_push_if_not_exists('../admin-lte/dist/css/AdminLTE.min');
css_push_if_not_exists('../admin-lte/plugins/iCheck/square/blue');
js_push_if_not_exists('../admin-lte/plugins/jQuery/jQuery-2.1.3.min');
js_push_if_not_exists('../admin-lte/bootstrap/js/bootstrap.min');
js_push_if_not_exists('../admin-lte/plugins/iCheck/icheck.min');
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Has admin ?
$this->users_global->hasAdmin() === FALSE ? $this->url->redirect(array('registration', 'superAdmin')) : false;
// is Connected ?
$this->users_global->isConnected() === TRUE ? $this->url->redirect(array('index')) : false;
$this->options = get_meta('all');
set_core_vars('tendoo_notices', trigger_filters('declare_notices', array(get_core_vars('default_notices'))));
// @since 1.4
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:28,代码来源:login.php
示例4: check
function check()
{
// Get Repo from Blair2004
// Check Version Releases
// http://api.github.com/repos/Blair2004/tendoo-cms/releases
$json_api = $this->curl->security(false)->get('https://api.github.com/repos/Blair2004/tendoo-cms/releases');
if ($json_api != '') {
$array_api = json_decode($json_api, true);
$lastest_release = return_if_array_key_exists(0, $array_api);
$release_tag_name = return_if_array_key_exists('tag_name', $lastest_release);
$release_id = (double) substr($release_tag_name, 1);
$lastest_release = array('id' => $release_id, 'name' => return_if_array_key_exists('name', $lastest_release), 'description' => return_if_array_key_exists('body', $lastest_release), 'beta' => return_if_array_key_exists('prerelease', $lastest_release), 'published' => return_if_array_key_exists('published_at', $lastest_release), 'link' => return_if_array_key_exists('zipball_url', $lastest_release));
$tendoo_update['core'] = $lastest_release;
set_meta('tendoo_core_update', $tendoo_update);
}
$core_id = (double) get('core_id');
if ($tendoo_update = get_meta('tendoo_core_update')) {
$array = array();
// Setting Core Warning
if ($release = return_if_array_key_exists('core', $tendoo_update)) {
if ($release['id'] > $core_id) {
//
if ($release['beta'] == false) {
$array[] = array('link' => $release['link'], 'content' => $release['description'], 'title' => $release['name'], 'date' => $release['published']);
}
}
}
return $array;
}
return false;
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:31,代码来源:Tendoo_update.Class.php
示例5: __construct
public function __construct($data)
{
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
parent::__construct();
__extends($this);
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$this->load->library('gui');
$this->_config();
$this->data = $data;
$this->instance = get_instance();
$this->opened_module = get_core_vars('opened_module');
$this->data['module'] = get_core_vars('opened_module');
$this->news = new blogster_library($this->data);
set_core_vars('news', $this->news);
$this->data['news'] =& $this->news;
// Deprecated
$this->read_slug = 'read';
$this->options = get_meta('blogster_settings');
set_core_vars('blogster_settings', $this->options);
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$this->data['inner_head'] = $this->load->view('admin/inner_head', $this->data, true);
$this->data['lmenu'] = $this->load->view(VIEWS_DIR . '/admin/left_menu', $this->data, true, TRUE);
$this->link = MODULES_DIR . $this->opened_module['encrypted_dir'] . '/';
/*
Intégration de la librarie FILE MANAGER : Gestionnaire des fichiers médias.
*/
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$fileManager = get_modules('filter_namespace', 'tendoo_contents');
if ($fileManager) {
include_once MODULES_DIR . $fileManager['encrypted_dir'] . '/utilities.php';
set_core_vars('fmlib', new tendoo_contents_utility());
// Loading library
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:35,代码来源:backend.php
示例6: addHtmlExtensions
/**
* Add "title" macros for "html" service location.
*
* @param \Illuminate\Contracts\Foundation\Application $app
*
* @return void
*/
protected function addHtmlExtensions(Application $app)
{
$html = $app->make('html');
$html->macro('title', function ($title = null) use($html) {
$builder = new Title($html, memorize('site.name'), ['site' => get_meta('html::title.format.site', '{site.name} (Page {page.number})'), 'page' => get_meta('html::title.format.page', '{page.title} — {site.name}')]);
return $builder->title($title ?: trim(get_meta('title', '')));
});
}
开发者ID:quetzyg,项目名称:foundation,代码行数:15,代码来源:LoadExpresso.php
示例7: index
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
*/
public function index()
{
$packages = $this->object->getList(array('type' => 'package', 'with' => array('tag', 'meta')));
$price_levels = array();
foreach ($packages['data'] as $package) {
$price_levels[get_tag($package, '价格档次')] = get_meta($package, '价格');
}
$products = $this->object->getList(array('type' => 'product', 'meta' => array('首页推荐' => true), 'with_meta' => true));
$this->load->view('home', compact('price_levels', 'products'));
}
开发者ID:srsman,项目名称:89jian,代码行数:25,代码来源:Welcome.php
示例8: timestamp
public function timestamp()
{
// $this->load->helper('date');
$timezone = get_meta('site_timezone');
if ($timezone == false) {
$timezone = 'Etc/UTC';
}
// $tz_object = new DatetimeZone($timezone);
$date = new DateTime(null, new DatetimeZone($timezone));
$timestamp = strtotime($date->format('Y-m-d H:i:s'));
return $timestamp;
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:12,代码来源:Tdate.Class.php
示例9: __construct
function __construct()
{
// Saving Theme Settings
$active_theme = get_core_vars('active_theme');
if (riake('namespace', $active_theme)) {
$settings = get_meta($active_theme['namespace'] . '_theme_settings');
if ($settings) {
push_core_vars('active_theme', 'theme_settings', $settings);
}
}
$this->module = get_modules('filter_namespace', 'tim');
if (is_admin()) {
$this->menu = new Menu();
$this->menu = new Menu();
$this->menu->add_admin_menu_core('themes', array('title' => __('Theme Options'), 'icon' => 'fa fa-columns', 'href' => get_instance()->url->site_url(array('admin', 'open', 'modules', $this->module['namespace']))));
}
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:17,代码来源:init.php
示例10: __construct
public function __construct($data)
{
$this->instance = get_instance();
$this->data =& $data;
$this->theme = get_core_vars('active_theme_object');
$this->location = MODULES_DIR . $this->data['currentWidget']['WIDGET_MODULE']['encrypted_dir'];
if (!class_exists('News_smart')) {
include_once $this->location . '/library.php';
}
$this->news = new News_smart();
$this->data['mostViewed'] = $this->news->getMostViewed(0, 10);
$end = '<ul>';
if ($this->instance->users_global->isConnected()) {
$this->instance->load->library('tendoo_admin');
if ($this->instance->users_global->isAdmin()) {
$priv = $this->instance->users_global->current('REF_ROLE_ID');
if ($this->instance->users_global->isSuperAdmin()) {
$end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'modules')) . '">Liste des modules</a></li>';
$end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'setting')) . '">Paramètres</a></li>';
$end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'system', 'manage_actions')) . '">Gestion d\'actions</a></li>';
$end .= '<li><a href="' . $this->instance->url->site_url(array('admin', 'installer')) . '">Installer une application</a></li>';
} else {
if (!$this->instance->tendoo_admin->is_public_role($priv)) {
$end .= '<li><a href="' . $this->instance->url->site_url(array('admin')) . '">Espace administration</a></li>';
}
}
}
$end .= '<li><a href="' . $this->instance->url->site_url(array('account')) . '">Mon profil</a></li>';
$end .= '<li><a href="' . $this->instance->url->site_url(array('account', 'messaging', 'home')) . '">Ma messagerie</a></li>';
} else {
$options = get_meta('all');
if (riake('allow_registration', $options) == '1') {
$end .= '<li><a href="' . $this->instance->url->site_url(array('registration')) . '">Inscription</a></li>';
}
$end .= '<li><a href="' . $this->instance->url->site_url(array('login')) . '">Connexion</a></li>';
}
$end .= '</ul>';
// For Zones
if (in_array($this->data['widgets']['requestedZone'], array('LEFT', 'BOTTOM', 'RIGHT'))) {
$widget_title = $this->data['currentWidget']['WIDGET_INFO']['WIDGET_TITLE'];
$zone = $this->data['widgets']['requestedZone'];
// requestedZone
set_widget(strtolower($zone), $widget_title, $end, 'text');
}
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:45,代码来源:sys_links.php
示例11: index
public function index()
{
$active_theme = get_core_vars('active_theme');
$setting_key = $active_theme['namespace'] . '_theme_settings';
$this->load->library('form_validation');
$this->form_validation->set_rules('api_limit', 'API LIMIT', 'required');
$this->form_validation->set_rules('declared_apis', 'Declared API', 'required');
$this->form_validation->set_rules('declared_item', 'Declared Item', 'required');
// For Static using API
if ($this->form_validation->run()) {
if ($active_theme) {
$datas_get = get_meta($setting_key);
$saved_settings = $datas_get ? $datas_get : array();
// If there are same setting already saved, they'll be overwrited
$saved_settings[$this->input->post('declared_item')] = array('api_limit' => $this->input->post('api_limit'), 'declared_apis' => $this->input->post('declared_apis'), 'declared_item' => $this->input->post('declared_item'));
if (set_meta($active_theme['namespace'] . '_theme_settings', $saved_settings)) {
notice('push', fetch_notice_output('done'));
}
}
}
// For Static not draggable
if ($this->input->post('is_static_item')) {
$this->load->library('form_validation');
if ($static = return_if_array_key_exists('static', $_POST)) {
if (is_array($static)) {
$active_theme = get_core_vars('active_theme');
$saved_settings = get_meta($active_theme['namespace'] . '_theme_settings');
foreach ($static as $namespace => $item) {
if (is_array($item)) {
foreach ($item as $name => $fields) {
$saved_settings[$namespace][$name] = $fields;
}
}
}
if (set_meta($active_theme['namespace'] . '_theme_settings', $saved_settings)) {
notice('push', fetch_notice_output('done'));
}
}
}
}
// Add Settings to Core vars
push_core_vars('active_theme', 'theme_settings', get_meta($setting_key));
set_page('title', 'TIM | ' . get('core_version'));
return $this->load->view($this->module_metas['uri_path'] . 'views/body', $this->data, true, true);
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:45,代码来源:backend.php
示例12: __construct
public function __construct()
{
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
parent::__construct();
__extends($this);
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$this->news = new News_smart();
$this->data['page'] = get_core_vars('page');
$this->data['theme'] = get_core_vars('active_theme_object');
$this->data['module'] = get_core_vars('module');
$this->data['news'] =& $this->news;
$this->data['userUtil'] =& $this->users_global;
$this->data['setting'] = get_meta('blogster_settings');
// Setting Bread
$this->data['current_page'] = get_core_vars('page');
set_bread(array('link' => get_instance()->url->site_url(array($this->data['current_page'][0]['PAGE_CNAME'])), 'text' => $this->data['current_page'][0]['PAGE_CNAME']));
// End
}
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:18,代码来源:frontend.php
示例13: process_message
function process_message($msg)
{
global $debug;
global $useragent;
$json = $msg->body;
$ob = json_decode($json);
$id = $ob->id;
$url = $ob->url;
$aurl = $ob->avatar_url;
print "*** FETCHING id: {$id}, {$url}\n";
mkdir("data/{$id}");
mkdir("data/{$id}/uploads");
file_put_contents("data/{$id}/profile.json", "{$json}\n");
get_meta($id, $aurl);
crawl($id, $url);
system("nice tar -cjvf data/{$id}.tar.bz2 data/{$id}");
system("rm -rf data/{$id}");
system("scp data/{$id}.tar.bz2 [email protected]:/temp/soundcloud");
system("rm -rf data/{$id}.tar.bz2");
print "*** DONE id: {$id}, {$url}\n";
$msg->delivery_info['channel']->basic_ack($msg->delivery_info['delivery_tag']);
}
开发者ID:scumola,项目名称:soundcloud-crawler,代码行数:22,代码来源:fetch_music.php
示例14: meta
function meta($meta, $id = '')
{
echo get_meta($meta, $id);
}
开发者ID:perusoa,项目名称:anthony-peruso-website,代码行数:4,代码来源:theme-functions.php
示例15: get_meta
<?php
$this->view('header');
?>
<div class="article-page">
<a type="button" id="font-standard" class="btn pull-right">标准字体</a>
<h1><?php
echo $article['name'];
?>
</h1>
<?php
echo get_meta($article, '内容');
?>
</div>
<script type="text/javascript">
(function($){
$(function(){
$('#font-standard').on('click', function(){
$('.article-page').css('font-family', 'STZhongsong, Songti SC, SimSun, serif');
$(this).fadeOut(100);
});
});
})(jQuery)
</script>
<?php
$this->view('footer');
开发者ID:srsman,项目名称:89jian,代码行数:26,代码来源:article.php
示例16: get_meta
</tr>
<?php
}
?>
</tbody>
</table>
</div>
送餐状态:
<?php
echo get_meta($user, '套餐');
?>
<?php
if (get_meta($user, '下次送餐日期')) {
?>
每周送餐中,下次送餐日期:<?php
echo get_meta($user, '下次送餐日期');
?>
<div class="pull-right">
<button type="submit" name="stop" class="btn">暂停送餐</button>
</div>
<?php
} else {
?>
暂停送餐中
<div class="pull-right">
<div class="input-append date" id="datepicker" data-date="<?php
echo date('Y-m-d', time() + 86400 * 7);
?>
" data-date-format="yyyy-mm-dd">
<input name="下次送餐日期" class="span2" size="16" type="text" value="<?php
echo date('Y-m-d', time() + 86400 * 7);
开发者ID:srsman,项目名称:89jian,代码行数:31,代码来源:meal.php
示例17: set_value
</div>
</div>
<div class="control-group">
<label class="control-label">内容分类</label>
<div class="controls">
<input type="text" name="tag[内容分类]" value="<?php
echo set_value('tag[内容分类]', isset($package) ? get_tag($package, '内容分类') : '');
?>
" />
</div>
</div>
<div class="control-group">
<label class="control-label">组成</label>
<div class="controls">
<textarea name="meta[组成]"><?php
echo set_value('tag[组成]', isset($package) ? get_meta($package, '组成') : '');
?>
</textarea>
</div>
</div>
<button type="submit" name="submit" class="btn">提交</button>
<button type="submit" name="remove" class="btn-link">删除</button>
</form>
</div>
<script type="text/javascript" src="/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
$(function(){
tinymce.init({
selector: "textarea",
language:'zh_CN',
开发者ID:srsman,项目名称:89jian,代码行数:31,代码来源:edit.php
示例18: paymentConfirm
/**
* 支付完成返回页面
*/
function paymentConfirm()
{
$notify_verify = file_get_contents('https://mapi.alipay.com/gateway.do?service=notify_verify&partner=' . $this->company->config('alipay_partner_id') . '¬ify_id=' . $this->input->get('notify_id'));
if ($notify_verify !== 'true') {
throw new Exception('支付校验失败', 400);
}
$order_id = $this->input->get('out_trade_no');
$order = $this->object->fetch($order_id);
$this->object->addMeta('支付宝流水号', $this->input->get('trade_no'));
$this->object->addStatus('支付完成');
// 如果是卡,那么拿一张卡并写入订单信息
if (get_meta($order, '是否卡片') === '是') {
$card = $this->object->getRow(array('type' => 'card', 'meta' => array('已绑定套餐' => '否')));
if (!$card) {
throw new Exception('获得卡片错误,请联系客服处理', 500);
}
$this->object->id = $card['id'];
$this->object->authorize(array('read' => true, 'write' => true), null, false);
$this->object->updateMeta('已绑定套餐', '是');
$this->object->addMeta(array('套餐' => get_meta($order, '套餐'), '价格档次' => get_meta($order, '价格档次'), '内容分类' => get_meta($order, '内容分类'), '次数' => get_meta($order, '次数')));
$this->object->addRelative('package', get_relative($order, 'package', 'id'));
$this->object->authorize('public', null, false);
$this->object->id = $order['id'];
$this->object->addRelative('card', $card['id']);
// 购买的卡并不立即充入用户账户,最终用户拿到卡,导入到自己的账号,才完成关联(直接导入“餐”,并不关联“卡”本身)
} else {
$this->user->getMeta();
$bought = isset($this->user->meta['已购']) ? json_decode($this->user->meta['已购'][0], JSON_OBJECT_AS_ARRAY) : false;
if (!$bought) {
$bought = array();
}
if (array_key_exists(get_meta($order, '价格档次'), $bought)) {
$bought[get_meta($order, '价格档次')] += get_meta($order, '次数');
} else {
$bought[get_meta($order, '价格档次')] = get_meta($order, '次数');
}
$this->user->updateMeta('已购', json_encode($bought));
$this->user->updateMeta('套餐', get_meta($order, '套餐'));
$this->user->updateMeta('下次送餐日期', get_meta($order, '首次送货日期'));
}
redirect('user/order');
}
开发者ID:srsman,项目名称:89jian,代码行数:45,代码来源:Buy.php
示例19: foreach
</thead>
<tbody>
<?php
foreach ($orders['data'] as $order) {
?>
<tr>
<td><?php
echo $order['id'];
?>
</td>
<td><?php
echo get_relative($order, 'package', 'name');
?>
</td>
<td><?php
echo get_meta($order, '次数');
?>
</td>
<td><?php
echo get_status($order, '下单');
?>
</td>
<td><?php
echo get_status($order);
?>
</td>
<td><a href="/user/order/<?php
echo $order['id'];
?>
">查看</a></td>
</tr>
开发者ID:srsman,项目名称:89jian,代码行数:31,代码来源:list.php
示例20: set_value
" />
</div>
</div>
<div class="control-group">
<div class="control-label">收货地址:</div>
<div class="controls">
<input type="text" name="meta[收货地址]" value="<?php
echo set_value('meta[收货地址]', get_meta($order, '收货地址'));
?>
" />
</div>
</div>
<div class="control-group">
<div class="control-label">邮编:</div>
<div class="controls">
<input type="text" name="meta[邮编]" value="<?php
echo set_value('meta[邮编]', get_meta($order, '邮编'));
?>
" />
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" name="next" class="btn">去支付宝支付</button>
<button type="submit" name="cancel" class="btn">放弃此订单</button>
</div>
</div>
</form>
</div>
<?php
$this->view('footer');
开发者ID:srsman,项目名称:89jian,代码行数:31,代码来源:logistic.php
注:本文中的get_meta函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论