Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fecadmin controller and view , migrate to fecshop appadmin
- Loading branch information
1 parent
6c60f4d
commit f0bae49
Showing
12 changed files
with
403 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
app/appadmin/modules/Fecadmin/controllers/ConfigController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
namespace fecshop\app\appadmin\modules\Fecadmin\controllers; | ||
use Yii; | ||
use fec\helpers\CRequest; | ||
use fecadmin\FecadminbaseController; | ||
use fecshop\app\appadmin\modules\AppadminController; | ||
/** | ||
* @author Terry Zhao <2358269014@qq.com> | ||
* @since 1.0 | ||
*/ | ||
class ConfigController extends AppadminController | ||
{ | ||
public $enableCsrfValidation = false; | ||
|
||
public function actionManager() | ||
{ | ||
$data = $this->getFecadminBlock()->getLastData(); | ||
return $this->render($this->action->id,$data); | ||
} | ||
|
||
|
||
public function actionManageredit() | ||
{ | ||
//echo $this->action->id ;exit; | ||
$data = $this->getFecadminBlock()->getLastData(); | ||
return $this->render($this->action->id,$data); | ||
} | ||
|
||
public function actionManagereditsave() | ||
{ | ||
|
||
//echo $this->action->id ;exit; | ||
$data = $this->getFecadminBlock("manageredit")->save(); | ||
//return $this->render($this->action->id,$data); | ||
} | ||
|
||
public function actionManagerdelete() | ||
{ | ||
//echo $this->action->id ;exit; | ||
$this->getFecadminBlock("manageredit")->delete(); | ||
|
||
} | ||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
38 changes: 38 additions & 0 deletions
38
app/appadmin/modules/Fecadmin/controllers/LogController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
namespace fecshop\app\appadmin\modules\Fecadmin\controllers; | ||
use Yii; | ||
use fec\helpers\CRequest; | ||
use fecadmin\FecadminbaseController; | ||
use fecshop\app\appadmin\modules\AppadminController; | ||
/** | ||
* @author Terry Zhao <2358269014@qq.com> | ||
* @since 1.0 | ||
*/ | ||
class LogController extends AppadminController | ||
{ | ||
public $enableCsrfValidation = false; | ||
|
||
public function actionIndex() | ||
{ | ||
|
||
$data = $this->getFecadminBlock()->getLastData(); | ||
return $this->render($this->action->id,$data); | ||
} | ||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
app/appadmin/modules/Fecadmin/controllers/LogtjController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
namespace fecshop\app\appadmin\modules\Fecadmin\controllers; | ||
use Yii; | ||
use fec\helpers\CRequest; | ||
use fecadmin\FecadminbaseController; | ||
use fecshop\app\appadmin\modules\AppadminController; | ||
/** | ||
* @author Terry Zhao <2358269014@qq.com> | ||
* @since 1.0 | ||
*/ | ||
class LogtjController extends AppadminController | ||
{ | ||
public $enableCsrfValidation = false; | ||
|
||
public function actionIndex() | ||
{ | ||
$data = $this->getFecadminBlock()->getLastData(); | ||
return $this->render($this->action->id,$data); | ||
} | ||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
37 changes: 37 additions & 0 deletions
37
app/appadmin/modules/Fecadmin/controllers/MyaccountController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
namespace fecshop\app\appadmin\modules\Fecadmin\controllers; | ||
use Yii; | ||
use fec\helpers\CRequest; | ||
use fecadmin\FecadminbaseController; | ||
use fecshop\app\appadmin\modules\AppadminController; | ||
/** | ||
* @author Terry Zhao <2358269014@qq.com> | ||
* @since 1.0 | ||
*/ | ||
class MyaccountController extends AppadminController | ||
{ | ||
public $enableCsrfValidation = false; | ||
|
||
# 我的账户 | ||
public function actionIndex() | ||
{ | ||
$data = $this->getFecadminBlock()->getLastData(); | ||
return $this->render($this->action->id,$data); | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
37 changes: 37 additions & 0 deletions
37
app/appadmin/theme/base/default/fecadmin/config/manager.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
use fec\helpers\CRequest; | ||
?> | ||
<form id="pagerForm" method="post" action="<?= \fec\helpers\CUrl::getCurrentUrl(); ?>"> | ||
<?= CRequest::getCsrfInputHtml(); ?> | ||
<?= $pagerForm; ?> | ||
</form> | ||
<div class="pageHeader"> | ||
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?= \fec\helpers\CUrl::getCurrentUrl(); ?>" method="post"> | ||
<?php echo CRequest::getCsrfInputHtml(); ?> | ||
<div class="searchBar"> | ||
<?php echo $searchBar; ?> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="pageContent"> | ||
<div class="panelBar"> | ||
<?= $editBar; ?> | ||
</div> | ||
<div class="panelBar"> | ||
<?= $toolBar; ?> | ||
</div> | ||
<table class="table" width="100%" layoutH="138"> | ||
<?= $thead; ?> | ||
<tbody> | ||
<?= $tbody; ?> | ||
</tbody> | ||
</table> | ||
|
||
</div> |
47 changes: 47 additions & 0 deletions
47
app/appadmin/theme/base/default/fecadmin/config/manageredit.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
use yii\helpers\Html; | ||
use fec\helpers\CRequest; | ||
?> | ||
<style> | ||
.dialog .pageContent {background:none;} | ||
.dialog .pageContent .pageFormContent{background:none;} | ||
</style> | ||
<div class="pageContent"> | ||
<form method="post" action="<?= $saveUrl ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDoneCloseAndReflush);"> | ||
<?php echo CRequest::getCsrfInputHtml(); ?> | ||
<div layouth="56" class="pageFormContent" style="height: 240px; overflow: auto;"> | ||
|
||
<input type="hidden" value="<?= $product_id; ?>" size="30" name="product_id" class="textInput "> | ||
|
||
<fieldset id="fieldset_table_qbe"> | ||
<legend style="color:#cc0000">编辑信息</legend> | ||
<div> | ||
<?= $editBar; ?> | ||
|
||
</div> | ||
</fieldset> | ||
|
||
|
||
|
||
</div> | ||
|
||
<div class="formBar"> | ||
<ul> | ||
<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>--> | ||
<li><div class="buttonActive"><div class="buttonContent"><button onclick="func('accept')" value="accept" name="accept" type="submit">保存</button></div></div></li> | ||
|
||
<li> | ||
<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div> | ||
</li> | ||
</ul> | ||
</div> | ||
</form> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
use fec\helpers\CRequest; | ||
?> | ||
<form id="pagerForm" method="post" action="<?= \fec\helpers\CUrl::getCurrentUrl(); ?>"> | ||
<?= CRequest::getCsrfInputHtml(); ?> | ||
<?= $pagerForm; ?> | ||
</form> | ||
<div class="pageHeader"> | ||
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?= \fec\helpers\CUrl::getCurrentUrl(); ?>" method="post"> | ||
<?php echo CRequest::getCsrfInputHtml(); ?> | ||
<div class="searchBar"> | ||
<?php echo $searchBar; ?> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="pageContent"> | ||
<div class="panelBar"> | ||
<?php //echo $editBar; ?> | ||
</div> | ||
<div class="panelBar"> | ||
<?= $toolBar; ?> | ||
</div> | ||
<table class="table" width="100%" layoutH="138"> | ||
<?= $thead; ?> | ||
<tbody> | ||
<?= $tbody; ?> | ||
</tbody> | ||
</table> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* FecShop file. | ||
* | ||
* @link http://www.fecshop.com/ | ||
* @copyright Copyright (c) 2016 FecShop Software LLC | ||
* @license http://www.fecshop.com/license/ | ||
*/ | ||
use fec\helpers\CRequest; | ||
?> | ||
<form id="pagerForm" method="post" action="<?= \fec\helpers\CUrl::getCurrentUrl(); ?>"> | ||
<?= CRequest::getCsrfInputHtml(); ?> | ||
<?= $pagerForm; ?> | ||
|
||
</form> | ||
<div class="pageHeader"> | ||
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?= \fec\helpers\CUrl::getCurrentUrl(); ?>" method="post"> | ||
<?php echo CRequest::getCsrfInputHtml(); ?> | ||
<div class="searchBar"> | ||
<?php echo $searchBar; ?> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="pageContent"> | ||
<div class="panelBar"> | ||
<?php //echo $editBar; ?> | ||
</div> | ||
<div class="panelBar"> | ||
<?= $toolBar; ?> | ||
</div> | ||
<table class="table" width="100%" layoutH="138"> | ||
<?= $thead; ?> | ||
<tbody> | ||
<?= $tbody; ?> | ||
</tbody> | ||
</table> | ||
</div> |
Oops, something went wrong.