禪道項目管理系統廣告刪除方法

感謝禪道的無私奉獻

感謝禪道的開源行爲

好了讓我們來更改開源的禪道吧,他已經開源了所以大家不用有心裏負擔。


首頁圖片位置

www\theme\default\p_w_picpaths\main


首頁廣告去除

www\module\user\view\login.html.php

將內容替換爲:

<?php
/**
* The html template file of login method of user module of ZenTaoPMS.
*
* @copyright   Copyright 2009-2013 青島易軟天創網絡科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author      Chunsheng Wang <[email protected]>
* @package     ZenTaoPMS
* @version     $Id: login.html.php 4612 2013-03-18 07:46:16Z wwccss $
*/
include '../../common/view/header.lite.html.php';
include '../../common/view/colorbox.html.php';
?>
<form method='post' target='hiddenwin'>
  <table align='center' class='table-4'>
    <tr>
      <td class='rowhead'><?php echo $lang->user->account;?>:</td>
      <td><input class='text-2' type='text' name='account' id='account' /></td>
    </tr>
    <tr>
      <td class='rowhead'><?php echo $lang->user->password;?>:</td>
      <td><input class='text-2' type='password' name='password' /></td>
    </tr>
    <tr>
      <td class='rowhead' valign='top'>Language:</td>
      <td><?php echo html::select('lang', $config->langs, $this->app->getClientLang(), 'class=select-2 onchange=selectLang(this.value)');?></td>
    </tr>
    <tr><td></td><td id='keeplogin'><?php echo html::checkBox('keepLogin', $lang->user->keepLogin, $keepLogin);?></td></tr>
    <tr>
      <td colspan='2' class='a-center'>
      <?php
      echo html::submitButton($lang->login);
      if($app->company->guest) echo html::linkButton($lang->user->asGuest, $this->createLink($config->default->module));
      echo html::hidden('referer', $referer);
      ?>
      </td>
    </tr>
  </table>
  <?php if(isset($demoUsers)):?>
  <div id='demoUsers'>
    <?php
    echo "<span>" . $lang->user->loginWithDemoUser . "</span>";
    $sign = $config->requestType == 'GET' ? '&' : '?';
    if(isset($demoUsers['productManager'])) echo html::a(inlink('login') . $sign . "account=productManager&password=123456", $demoUsers['productManager'], 'hiddenwin');
    if(isset($demoUsers['projectManager'])) echo html::a(inlink('login') . $sign . "account=projectManager&password=123456", $demoUsers['projectManager'], 'hiddenwin');
    if(isset($demoUsers['testManager']))    echo html::a(inlink('login') . $sign . "account=testManager&password=123456",    $demoUsers['testManager'],    'hiddenwin');
    if(isset($demoUsers['dev1']))           echo html::a(inlink('login') . $sign . "account=dev1&password=123456",           $demoUsers['dev1'],           'hiddenwin');
    if(isset($demoUsers['tester1']))        echo html::a(inlink('login') . $sign . "account=tester1&password=123456",        $demoUsers['tester1'],        'hiddenwin');
    ?>
  </div>
  <?php endif;?>
  <div id='poweredby'>
    <?php if($config->checkVersion):?>
    <br />
    <?php endif;?>
  </div>
</form>
<?php include '../../common/view/footer.lite.html.php';?>


使用頁面廣告去除:

module\common\view\footer.html.php

替換爲:

  </div>
  <?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
  <iframe frameborder='0' name='hiddenwin' id='hiddenwin' scrolling='no' class='<?php print($config->debug ? 'debugwin' : 'hidden');?>'></iframe>
  <div id='divider'></div>
<?php $onlybody = zget($_GET, 'onlybody', 'no');?>
<?php if($onlybody != 'yes'):?>
</div>
<div id='footer'>
  <table class='cont' >
    <tr>
      <td class='w-p50 'id='crumbs'><?php commonModel::printBreadMenu($this->moduleName, isset($position) ? $position : ''); ?></td>
      <td class='a-right' id='poweredby'>
        <span>
        <?php commonModel::printNotifyLink();?>
      </td>
    </tr>
  </table>
</div>
<?php endif;?>
<?php
js::set('onlybody', $onlybody);           // set the onlybody var.
if(isset($pageJS)) js::execute($pageJS);  // load the js for current page.
/* Load hook files for current page. */
$extPath      = dirname(dirname(dirname(realpath($viewFile)))) . '/common/ext/view/';
$extHookRule  = $extPath . 'footer.*.hook.php';
$extHookFiles = glob($extHookRule);
if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile;
?>
</body>
</html>




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章