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


PHP project::activate方法代码示例

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


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

示例1: project

    echo $lang['requests_newRequest'];
}
?>
</h2>
<table border="0" cellpadding="2" cellspacing="0">
  <tr>
    <td><?php 
echo $lang['common_project'];
?>
:&nbsp;</td>
    <td><select name="projectid">
      <?php 
$projectInst = new project();
$list = $projectInst->getList();
while ($element = current($list)) {
    $projectInst->activate($element);
    $selected = "";
    if ($projectInst->id == $requestInst->projectId) {
        $selected = "selected";
    }
    echo "<option " . $selected . " value=\"" . $projectInst->id . "\">" . $projectInst->name . "\n";
    next($list);
}
?>
    </select></td>
  </tr><tr>
    <td><?php 
echo $lang['common_subject'];
?>
:&nbsp;</td>
    <td><input type="text" name="subject" value="<?php 
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:requests.php

示例2: elseif

    if (tool::securePost('action') == "save" && tool::securePost('id')) {
        # fill project with submitted data
        $projectInst->id = tool::securePost('id');
        $projectInst->fill(tool::securePostAll());
        $status = $projectInst->update();
    } elseif (tool::securePost('action') == "save") {
        $projectInst->fill(tool::securePostAll());
        $status = $projectInst->insert();
    }
    if (tool::securePost('action') == "delete") {
        $projectInst->id = tool::securePost('id');
        $projectInst->delete();
    }
    if (tool::securePost('action') == "edit") {
        $status = 0;
        $projectInst->activate(tool::securePost('id'));
    }
    #######################################################################
    ## make edit / new form
    if (!$status) {
        echo "<h2>" . $lang['common_editRecord'] . " (<a href=\"" . $toolInst->encodeUrl("index.php?content=" . $content) . "\">" . $lang['common_newRecord'] . "</a>)</h2>\n";
    } else {
        $projectInst->clear();
        ?>
<h2><?php 
        echo $lang['common_newRecord'];
        ?>
</h2><?php 
    }
    ?>
开发者ID:pmtool,项目名称:pmtool,代码行数:30,代码来源:projects.php

示例3: project

        </tr><tr>
          <td><?php 
echo $lang['common_project'];
?>
:&nbsp;</td>
          <td><select name="filterprojectid"><option value=""><?php 
echo $lang['common_notSpecified'];
?>
            <?php 
$projectInst = new project();
if (tool::securePost('filtercustomerid')) {
    $projectInst->filterCustomerId = tool::securePost('filtercustomerid');
}
$list = $projectInst->getList();
while ($element = current($list)) {
    $projectInst->activate($element);
    $selected = "";
    if ($projectInst->id == tool::securePost('filterprojectid')) {
        $selected = "selected";
    }
    echo "<option " . $selected . " value=\"" . $projectInst->id . "\">" . $projectInst->name . "\n";
    next($list);
}
?>
          </select></td>
        </tr><tr>
          <td><?php 
echo $lang['common_subjectContains'];
?>
:&nbsp;</td>
          <td><input type="text" name="filtersubject" value="<?php 
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:reports.php


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