当前位置: 首页>>代码示例>>PHP>>正文


PHP commonModel::printLink方法代码示例

本文整理汇总了PHP中commonModel::printLink方法的典型用法代码示例。如果您正苦于以下问题:PHP commonModel::printLink方法的具体用法?PHP commonModel::printLink怎么用?PHP commonModel::printLink使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在commonModel的用法示例。


在下文中一共展示了commonModel::printLink方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getAdminReplies

 /**
  * Get all replies of a message for admin.
  *
  * @param  object  $message
  * @access public
  * @return array
  */
 public function getAdminReplies($message)
 {
     $replies = $this->getReplies($message);
     if (!empty($replies)) {
         echo "<dl class='alert alert-info'>";
         foreach ($replies as $reply) {
             printf($this->lang->message->replyItem, $reply->from, $reply->date, $reply->content);
             commonModel::printLink('message', 'delete', "messageID={$reply->id}&type=single&status={$reply->status}", $this->lang->delete, "class='deleter'");
             $this->getAdminReplies($reply);
         }
         echo "</dl>";
     }
 }
开发者ID:jnan77,项目名称:chanzhieps,代码行数:20,代码来源:model.php

示例2:

          <span class='dropdown'>
            <a data-toggle='dropdown' href='javascript:;'><?php 
    echo $this->lang->more;
    ?>
<span class='caret'></span></a>
            <ul class='dropdown-menu pull-right'>    
              <li><?php 
    commonModel::printLink('article', 'delete', "articleID={$article->id}", $lang->delete, 'class="deleter"');
    ?>
</li>
              <li><?php 
    commonModel::printLink('article', 'setcss', "articleID={$article->id}", $lang->article->css, "data-toggle='modal'");
    ?>
</li>
              <li><?php 
    commonModel::printLink('article', 'setjs', "articleID={$article->id}", $lang->article->js, "data-toggle='modal'");
    ?>
</li>
            </ul>
          </span>
        </td>
      </tr>
      <?php 
}
?>
    </tbody>
    <tfoot><tr><td colspan='7'><?php 
$pager->show();
?>
</td></tr></tfoot>
  </table>
开发者ID:AlenWon,项目名称:chanzhieps,代码行数:31,代码来源:admin.html.php

示例3:

    ?>
</td>
      <td><?php 
    echo $log->desc;
    ?>
</td>
      <td><?php 
    echo $log->browser;
    ?>
</td>
      <td><?php 
    commonModel::printLink('user', 'adminlog', "ip={$log->ip}", $log->ip);
    ?>
</td>
      <td><?php 
    commonModel::printLink('user', 'adminlog', "location={$log->location}", $log->location);
    ?>
</td>
      <td><?php 
    echo $log->date;
    ?>
</td>
    </tr>
    <?php 
}
?>
    </tbody>
    <tfoot>
      <tr>
        <td colspan='8'>
        <?php 
开发者ID:hansen1416,项目名称:eastsoft,代码行数:31,代码来源:adminlog.html.php

示例4:

 ?>
     <td rowspan='2' class='text-center text-middle'>
       <?php 
 commonModel::printLink('message', 'reply', "messageID={$message->id}", $lang->message->reply, "data-toggle='modal'");
 commonModel::printLink('guarder', 'addToBlacklist', "type=message&id={$message->id}", $lang->addToBlacklist, "data-toggle='modal'");
 echo '<br />';
 if ($status == 0) {
     commonModel::printLink('message', 'pass', "messageID={$message->id}&type=single", $lang->message->pass, "class='pass'");
 }
 if ($status == 0) {
     commonModel::printLink('message', 'pass', "messageID={$message->id}&type=pre", $lang->message->passPre, "class='pre' data-confirm='{$lang->message->confirmPassPre}'");
 }
 echo '<br />';
 commonModel::printLink('message', 'delete', "messageID={$message->id}&type=single&status={$status}", $lang->message->delete, "class='deleter'");
 if ($status == 0) {
     commonModel::printLink('message', 'delete', "messageID={$message->id}&type=pre&status={$status}", $lang->message->deletePre, "class='pre' data-confirm='{$lang->message->confirmDeletePre}'");
 }
 ?>
     </td>
   </tr>
   <tr>
     <td class='content-box'>
       <?php 
 if ($message->type == 'reply') {
     ?>
       <?php 
     $this->message->getObject($message);
     ?>
       <?php 
 }
 ?>
开发者ID:qiaqiali,项目名称:chanzhieps,代码行数:31,代码来源:admin.html.php

示例5:

    echo $article->editedDate;
    ?>
</td>
              <td class='text-center'><?php 
    echo $lang->contribution->status[$article->contribution];
    ?>
</td>
              <td class='text-center'><?php 
    echo $article->views;
    ?>
</td>
              <td class='text-center'>
                <?php 
    if ($article->contribution != 2) {
        commonModel::printLink('article', 'modify', "articleID={$article->id}", $lang->edit);
        commonModel::printLink('article', 'delete', "articleID={$article->id}", $lang->delete, 'class="deleter"');
    } else {
        echo html::a('javascript:;', $lang->edit, "class='disabled'") . html::a('javascript:;', $lang->delete, "class='disabled'");
    }
    ?>
              </td>
            </tr>
            <?php 
}
?>
          </tbody>
          <tfoot><tr><td colspan='7'><?php 
$pager->show();
?>
</td></tr></tfoot>
        </table>
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:31,代码来源:contribution.html.php

示例6:

    echo $object->identity;
    ?>
        </td>
        <td>
        <?php 
    echo $object->expiredDate == '0000-00-00 00:00:00' ? $lang->guarder->permanent : $object->expiredDate;
    ?>
        </td>
        <td>
        <?php 
    echo $object->reason;
    ?>
        </td>
        <td class='text-center text-middle'>
          <?php 
    commonModel::printLink('guarder', 'delete', "type={$object->type}&identity={$object->identity}", $lang->delete, "class='deleter'");
    ?>
        </td>
      </tr>
      <?php 
}
?>
    </tbody>
    <tfoot><tr><td colspan='7' class='text-right'><?php 
$pager->show();
?>
</td></tr></tfoot>
  </table>
</div>
<?php 
include '../../common/view/footer.admin.html.php';
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:31,代码来源:setblacklist.html.php

示例7: str_replace

    ?>
</strong></div>
      <div class='panel-body'>
        <div id='treeMenuBox'><?php 
    echo $treeMenu;
    ?>
</div>
        <?php 
    if ($isWechatMenu) {
        ?>
        <div class='panel-body'>
          <?php 
        commonModel::printLink('wechat', 'commitMenu', "public=" . str_replace('wechat_', '', $type), $lang->wechatMenu->commit, "class='btn btn-primary jsoner'");
        ?>
          <?php 
        commonModel::printLink('wechat', 'deleteMenu', "public=" . str_replace('wechat_', '', $type), $lang->wechatMenu->delete, "class='btn btn-danger jsoner'");
        ?>
        </div>
        <?php 
    }
    ?>
      </div>
    </div>
  </div>
  <div class='col-md-8' id='categoryBox'></div>
</div>
<?php 
} else {
    ?>
<div id='categoryBox'></div>
<?php 
开发者ID:jnan77,项目名称:chanzhieps,代码行数:31,代码来源:browse.html.php

示例8:

        <?php 
    if ($project->status != 'finished') {
        commonModel::printLink('project', 'finish', "projectID={$project->id}", $lang->finish, "data-toggle='modal'");
    }
    ?>
        <?php 
    if ($project->status != 'doing') {
        commonModel::printLink('project', 'activate', "projectID={$project->id}", $lang->activate, "class='switcher' data-confirm='{$lang->project->confirm->activate}'");
    }
    ?>
        <?php 
    if ($project->status != 'suspend') {
        commonModel::printLink('project', 'suspend', "projectID={$project->id}", $lang->project->suspend, "class='switcher' data-confirm='{$lang->project->confirm->suspend}'");
    }
    ?>
        <?php 
    commonModel::printLink('project', 'delete', "projectID={$project->id}", $lang->delete, "class='deleter'");
    ?>
      </td>
    </tr>
    <?php 
}
?>
    <tfoot><tr><td colspan='9'><?php 
echo $pager->show();
?>
</td></tr></tfoot>
  </table>
</div>
<?php 
include '../../common/view/footer.html.php';
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:index.html.php

示例9:

        <?php 
    }
    ?>
        <td rowspan='2' class='text-center text-middle'>
          <?php 
    commonModel::printLink('message', 'reply', "messageID={$message->id}", $lang->message->reply, "data-toggle='modal'");
    commonModel::printLink('message', 'delete', "messageID={$message->id}&type=single&status={$status}", $lang->message->delete, "class='deleter'");
    if ($status == 0) {
        commonModel::printLink('message', 'pass', "messageID={$message->id}&type=single", $lang->message->pass, "class='pass'");
    }
    echo '<br />';
    if ($status == 0) {
        commonModel::printLink('message', 'delete', "messageID={$message->id}&type=pre&status={$status}", $lang->message->deletePre, "class='pre' data-confirm='{$lang->message->confirmDeletePre}'");
    }
    if ($status == 0) {
        commonModel::printLink('message', 'pass', "messageID={$message->id}&type=pre", $lang->message->passPre, "class='pre' data-confirm='{$lang->message->confirmPassPre}'");
    }
    ?>
        </td>
      </tr>
      <tr>
        <td class='content-box'>
          <?php 
    if ($message->type == 'reply') {
        ?>
            <dl class='alert alert-info'><?php 
        $this->message->getObject($message);
        ?>
</dl>
          <?php 
    }
开发者ID:AlenWon,项目名称:chanzhieps,代码行数:31,代码来源:admin.html.php

示例10: number_format

          <td><?php 
    echo number_format($file->size / 1024, 1) . 'K';
    ?>
</td>
          <td><?php 
    echo isset($users[$file->addedBy]) ? $users[$file->addedBy] : '';
    ?>
</td>
          <td><?php 
    echo $file->addedDate;
    ?>
</td>
          <td class='text-center'>
            <?php 
    commonModel::printLink('file', 'sourceedit', "id={$file->id}", $lang->edit, "data-toggle='modal'");
    commonModel::printLink('file', 'sourcedelete', "id={$file->id}", $lang->delete, "class='deleter'");
    ?>
          </td>
        </tr>
        <?php 
}
?>
          
      </tbody>
      <tfoot><tr><td colspan='8'><?php 
$pager->show();
?>
</td></tr></tfoot>
    </table>
  </div>
</div>
开发者ID:wenyinos,项目名称:chanzhieps,代码行数:31,代码来源:browsesource.html.php

示例11:

          <span class='dropdown'>
            <a data-toggle='dropdown' href='javascript:;'><?php 
    echo $this->lang->more;
    ?>
<span class='caret'></span></a>
            <ul class='dropdown-menu pull-right'>    
              <li><?php 
    commonModel::printLink('product', 'delete', "productID={$product->id}", $lang->delete, "class='deleter'");
    ?>
</li>
              <li><?php 
    commonModel::printLink('product', 'setcss', "productID={$product->id}", $lang->product->css, "data-toggle='modal'");
    ?>
</li>
              <li><?php 
    commonModel::printLink('product', 'setjs', "productID={$product->id}", $lang->product->js, "data-toggle='modal'");
    ?>
</li>
            </ul>
          </span>
        </td>
      </tr> <?php 
}
?>
    </tbody>
    <tfoot><tr><td colspan='8'><?php 
$pager->show();
?>
</td></tr></tfoot>
  </table>
</div>
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:31,代码来源:admin.html.php

示例12:

 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPLV12 (http://zpl.pub/page/zplv12.html)
 * @author      Hao Sun <sunhao@cnezsoft.com>
 * @package     article
 * @version     $Id$
 * @link        http://www.chanzhi.org
 */
include '../../common/view/header.admin.html.php';
?>

<div class='form-group'>
<div class='col-xs-6 col-md-6 col-md-offset-3 alert'>
  <i class='icon-info-sign'></i>
  <div class='content'>
    <h4><?php 
echo $message;
?>
</h4>
    <p><?php 
echo $lang->tree->timeCountDown;
?>
</p>
    <?php 
commonModel::printLink('tree', 'browse', "type={$type}", $lang->tree->redirect, "class='btn btn-primary' id='countDownBtn'");
?>
  </div>
</div>
</div>

<?php 
include '../../common/view/footer.admin.html.php';
开发者ID:wenyinos,项目名称:chanzhieps,代码行数:31,代码来源:redirect.html.php

示例13: printf

          <?php 
        $i++;
        ?>
          <td class='border' width="<?php 
        echo $width;
        ?>
">
            <table class='board'>
              <tbody>
                <tr class='board'>
                  <td>
                    <?php 
        echo $this->forum->isNew($childBoard) ? "<span class='text-success'><i class='icon-comment'></i></span>" : "<span class='text-muted'><i class='icon-comment'></i></span>";
        ?>
                    <?php 
        commonModel::printLink('forum', 'board', "id={$childBoard->id}", $childBoard->name, "class='name'");
        ?>
                    <?php 
        if ($childBoard->moderators[0]) {
            printf(" &nbsp;<span class='moderators hidden-xxs'>" . $lang->forum->lblOwner . '</span>', trim(implode(',', $childBoard->moderators), ','));
        }
        ?>
                  </td>
                </tr>
                <?php 
        if ($childBoard->desc) {
            ?>
                <tr class='board'><td><small class='text-muted'><?php 
            echo $childBoard->desc;
            ?>
</small></td></tr>
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:index.html.php

示例14:

              <td class='text-left visible-lg'><div title="<?php 
    echo $trade->desc;
    ?>
" class='w-200px text-ellipsis'><?php 
    echo $trade->desc;
    ?>
<div></td>
              <td>
                <?php 
    commonModel::printLink('trade', 'edit', "tradeID={$trade->id}", $lang->edit);
    ?>
                <?php 
    commonModel::printLink('trade', 'detail', "tradeID={$trade->id}", $lang->trade->detail, "data-toggle='modal'");
    ?>
                <?php 
    commonModel::printLink('trade', 'delete', "tradeID={$trade->id}", $lang->delete, "class='deleter'");
    ?>
              </td>
            </tr>
            <?php 
}
?>
          </tbody>
        </table>
        <div class='table-footer'>
          <div class='pull-left'>
            <?php 
echo html::selectButton() . html::submitButton($lang->edit);
?>
            <span class='text-danger'><?php 
$this->trade->countMoney($trades, $mode);
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:browse.html.php

示例15:

/**
 * The browse view file of contract module of RanZhi.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Yidong Wang <yidong@cnezsoft.com>
 * @package     my
 * @version     $Id$
 * @link        http://www.ranzhico.com
 */
include './header.html.php';
js::set('type', $type);
?>
<div id='menuActions' class='actions'>
  <?php 
commonModel::printLink('crm.contract', 'create', '', '<i class="icon-plus"></i> ' . $lang->contract->create, "class='btn btn-primary'");
?>
</div>
<div class='panel'>
  <table class='table table-hover table-striped tablesorter table-data table-fixed' id='contractList'>
    <thead>
      <tr class='text-center'>
        <?php 
$vars = "type={$type}&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";
?>
        <th class='w-60px'> <?php 
commonModel::printOrderLink('id', $orderBy, $vars, $lang->contract->id);
?>
</th>
        <th class='w-100px'><?php 
commonModel::printOrderLink('code', $orderBy, $vars, $lang->contract->code);
开发者ID:leowh,项目名称:colla,代码行数:31,代码来源:contract.html.php


注:本文中的commonModel::printLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。