face91
Писатель
- Регистрация
- 17 Мар 2012
- Сообщения
- 8
- Реакции
- 0
Код:
<?php
/*********************/
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/
if ( !defined( "InShopNC" ) )
{
exit( "Access Invalid!" );
}
class consultingControl extends SystemControl
{
public function __construct( )
{
parent::__construct();
Language::read( "consulting" );
}
public function consultingOp( )
{
$condition = array( );
$condition['order'] = "consult.consult_addtime DESC";
if ( $_GET['form_submit'] == "ok" )
{
if ( trim( $_GET['member_name'] != "" ) )
{
$condition['member_name'] = trim( $_GET['member_name'] );
}
if ( trim( $_GET['consult_content'] != "" ) )
{
$condition['consult_content'] = trim( $_GET['consult_content'] );
}
Tpl::output( "form_submit", trim( $_GET['form_submit'] ) );
Tpl::output( "member_name", trim( $_GET['member_name'] ) );
Tpl::output( "consult_content", trim( $_GET['consult_content'] ) );
}
$page = new Page( );
$page->setEachNum( 10 );
$page->setStyle( "admin" );
$_obfuscate_cxBac7s3wяя = model( "consult" );
$_obfuscate_czvljAv_rSF4bjFxeF5NGcg = $_obfuscate_cxBac7s3wяя->getConsultList( $condition, $page, "admin" );
$_obfuscate_yladRUQEr2ovmcX14mt5jt5Q = $_obfuscate_cxBac7s3wяя->getConsultList( $condition, $page, "admin", "group" );
if ( !is_array( $_obfuscate_czvljAv_rSF4bjFxeF5NGcg ) )
{
$_obfuscate_czvljAv_rSF4bjFxeF5NGcg = array( );
}
if ( !is_array( $_obfuscate_yladRUQEr2ovmcX14mt5jt5Q ) )
{
$_obfuscate_yladRUQEr2ovmcX14mt5jt5Q = array( );
}
$_obfuscate_FIEVule3dVV80Nc = array_merge( $_obfuscate_czvljAv_rSF4bjFxeF5NGcg, $_obfuscate_yladRUQEr2ovmcX14mt5jt5Q );
Tpl::output( "show_page", $page->show( ) );
Tpl::output( "consult_list", $_obfuscate_FIEVule3dVV80Nc );
Tpl::showpage( "consulting.index" );
}
public function deleteOp( )
{
$lang = Language::getlangcontent( );
if ( empty( $_REQUEST['consult_id'] ) )
{
showmessage( $lang['consulting_del_choose'] );
}
$_obfuscate_J9HXXFbmiIUя = array( );
if ( !empty( $_GET['consult_id'] ) )
{
$_obfuscate_J9HXXFbmiIUя[] = intval( $_GET['consult_id'] );
}
if ( !empty( $_POST['consult_id'] ) )
{
$_obfuscate_J9HXXFbmiIUя = $_POST['consult_id'];
}
$_obfuscate_0W8я = array( );
$_obfuscate_0W8я = "'".implode( "','", $_obfuscate_J9HXXFbmiIUя )."'";
$_obfuscate_cxBac7s3wяя = model( "consult" );
if ( $_obfuscate_cxBac7s3wяя->dropConsult( $_obfuscate_0W8я ) )
{
showmessage( $lang['consulting_del_succ'] );
}
else
{
showmessage( $lang['consulting_del_fail'] );
}
}
}
?>
как то-так, это код после дезенда нужны переменые имен.. буду благодарен, или могу помолится вечерком за вас