Dies ist der ursprüngliche Aufruf:
$_G['db']->from('dbpre_subject');
$_G['db']->select('*');
$_G['db']->where('city_id', array(0,$_CITY['aid']));
$_G['db']->where_concat_like('name, subname', "%{$q}%");
$_G['db']->where('status', 1);
Jetzt möchte ich darauf aufbauen und die beiden Felder c_product_price und c_product_content in der Datentabelle dbpre_subject_product_new nennen. Vielen Dank im Voraus
//Fügen Sie den Quellcode ein
!definiert('IN_MUDDER') && exit('Zugriff verweigert');
$city_id = _get('city_id', null, MF_INT_KEY);
if($city_id>0) {
<code>$citys = $_G['loader']->variable('area'); if(!$city = $citys[$city_id]) redirect('global_area_city_id_invalid'); if(!$city['enabled']) redirect('global_area_city_disabled'); init_city($city_id);</code>
}
$q = _input('keyword', '', MF_TEXT);
if(($_GET['Pathinfo'] || $_GET['Rewrite']) && $q && $_G['charset '] != 'utf-8' && $_G'cfg') {
<code>$q = charset_convert($q,'utf-8',$_G['charset']);</code>
}
$q = str_replace(array("rn","r","n") ,'', _T($q));
$_G['db']->from('dbpre_subject');
$_G['db']->select('*');
$_G['db'] ->where('city_id', array(0,$_CITY['aid']));
$_G['db']->where_concat_like('name,subname', "%{$q} %");
$_G['db']->where('status', 1);
$multipage = '';
if($total = $_G['db']->count()) {
<code>$_G['db']->sql_roll_back('from,select,where'); $orderby = array($post['ordersort']=>$post['ordertype']); $offset = 10; $start = get_start($_GET['page'], $offset); $_G['db']->order_by($orderby); $_G['db']->limit($start, $offset); $list = $_G['db']->get(); if($total) { $multipage = mobile_page($total, $offset, $_GET['page'], url("item/mobile/do/search/keyword/$q/page/_PAGE_")); }</code>
}
//Vorlage anzeigen
if($_G['in_ajax']) {
<code>include mobile_template('item_list_li'); output();</code>
}
$title = 'Nach Produkten suchen:'.$q;
include mobile_template('item_list');
Dies ist der ursprüngliche Aufruf:
$_G['db']->from('dbpre_subject');
$_G['db']->select('*');
$_G['db']->where('city_id', array(0,$_CITY['aid']));
$_G['db']->where_concat_like('name, subname', "%{$q}%");
$_G['db']->where('status', 1);
Jetzt möchte ich darauf aufbauen und die beiden Felder c_product_price und c_product_content in der Datentabelle dbpre_subject_product_new nennen. Vielen Dank im Voraus
//Fügen Sie den Quellcode ein
!definiert('IN_MUDDER') && exit('Zugriff verweigert');
$city_id = _get('city_id', null, MF_INT_KEY);
if($city_id>0) {
<code>$citys = $_G['loader']->variable('area'); if(!$city = $citys[$city_id]) redirect('global_area_city_id_invalid'); if(!$city['enabled']) redirect('global_area_city_disabled'); init_city($city_id);</code>
}
$q = _input('keyword', '', MF_TEXT);
if(($_GET['Pathinfo'] || $_GET['Rewrite']) && $q && $_G['charset '] != 'utf-8' && $_G'cfg') {
<code>$q = charset_convert($q,'utf-8',$_G['charset']);</code>
}
$q = str_replace(array("rn","r","n") ,'', _T($q));
$_G['db']->from('dbpre_subject');
$_G['db']->select('*');
$_G['db'] ->where('city_id', array(0,$_CITY['aid']));
$_G['db']->where_concat_like('name,subname', "%{$q} %");
$_G['db']->where('status', 1);
$multipage = '';
if($total = $_G['db']->count()) {
<code>$_G['db']->sql_roll_back('from,select,where'); $orderby = array($post['ordersort']=>$post['ordertype']); $offset = 10; $start = get_start($_GET['page'], $offset); $_G['db']->order_by($orderby); $_G['db']->limit($start, $offset); $list = $_G['db']->get(); if($total) { $multipage = mobile_page($total, $offset, $_GET['page'], url("item/mobile/do/search/keyword/$q/page/_PAGE_")); }</code>
}
//Vorlage anzeigen
if($_G['in_ajax']) {
<code>include mobile_template('item_list_li'); output();</code>
}
$title = 'Nach Produkten suchen:'.$q;
include mobile_template('item_list');
Was für einen Rahmen haben Sie? Unterschiedliche Frameworks haben unterschiedliche Syntax