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


PHP block::closeForm方法代码示例

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


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

示例1: block

$blockPage->openBreadcrumbs();
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/listprojects.php?", $strings["projects"], in));
$blockPage->itemBreadcrumbs($blockPage->buildLink("../projects/viewproject.php?id=" . $projectDetail->pro_id[0], $projectDetail->pro_name[0], in));
if ($task != "0") {
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/listtasks.php?project=" . $projectDetail->pro_id[0], $strings["tasks"], in));
    $blockPage->itemBreadcrumbs($blockPage->buildLink("../tasks/viewtask.php?id=" . $taskDetail->tas_id[0], $taskDetail->tas_name[0], in));
}
$blockPage->itemBreadcrumbs($strings["unlink_files"]);
$blockPage->closeBreadcrumbs();
if ($msg != "") {
    include '../includes/messages.php';
    $blockPage->messagebox($msgLabel);
}
$block1 = new block();
$block1->form = "saC";
$block1->openForm("../linkedcontent/deletefiles.php?project={$project}&task={$task}&action=delete&id={$id}&sendto={$sendto}&" . session_name() . "=" . session_id());
$block1->heading($strings["unlink_files"]);
$block1->openContent();
$block1->contentTitle($strings["delete_following"]);
$id = str_replace("**", ",", $id);
$tmpquery = "WHERE fil.id IN({$id}) ORDER BY fil.name";
$listFiles = new request();
$listFiles->openFiles($tmpquery);
$comptListFiles = count($listFiles->fil_id);
for ($i = 0; $i < $comptListFiles; $i++) {
    echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td>" . $listFiles->fil_name[$i] . "</td></tr>";
}
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"SUBMIT\" value=\"" . $strings["delete"] . "\">&#160;<input type=\"BUTTON\" value=\"" . $strings["cancel"] . "\" onClick=\"history.back();\"></td></tr>";
$block1->closeContent();
$block1->closeForm();
include '../themes/' . THEME . '/footer.php';
开发者ID:ColBT,项目名称:php_tut,代码行数:31,代码来源:deletefiles.php

示例2: prj_displayMyTasks


//.........这里部分代码省略.........
    echo '<!--startMyTasks-->';
    echo '<div id="divMyTasks" style="padding-bottom:10px;">';
    $sql1 = "SELECT {$_TABLES['prj_tasks']}.tid FROM {$_TABLES['prj_tasks']} WHERE {$_TABLES['prj_tasks']}.pid={$pid} ";
    $result = DB_query($sql1);
    $block2->recordsTotal = DB_numrows($result);
    $sql2 = "SELECT {$_TABLES['prj_tasks']}.tid, {$_TABLES['prj_tasks']}.progress_id, ";
    $sql2 .= "{$_TABLES['prj_tasks']}.status_id, {$_TABLES['prj_tasks']}.priority_id, {$_TABLES['prj_tasks']}.name, ";
    $sql2 .= "{$_TABLES['users']}.fullname, {$_TABLES['prj_tasks']}.parent_task, {$_TABLES['prj_tasks']}.last_updated_date, ";
    $sql2 .= "{$_TABLES['prj_tasks']}.lhs, {$_TABLES['prj_tasks']}.rhs ";
    $sql2 .= "FROM {$_TABLES['prj_tasks']}, {$_TABLES['prj_task_users']}, {$_TABLES['users']} ";
    $sql2 .= "WHERE {$_TABLES['prj_tasks']}.pid='{$pid}' AND {$_TABLES['prj_task_users']}.tid={$_TABLES['prj_tasks']}.tid ";
    $sql2 .= "AND {$_TABLES['prj_task_users']}.uid={$_TABLES['users']}.uid AND {$_TABLES['prj_task_users']}.role='o' ";
    $sql2 .= "ORDER BY lhs ASC ";
    $sql2 .= " LIMIT {$lim}, {$block2->rowsLimit} ";
    $result = DB_query($sql2);
    $comptListTasks = DB_numrows($result);
    if ($comptListTasks > 0) {
        $block2->openResults(false);
        $block2->labels($labels = array(0 => $strings["task"], 1 => $strings["priority"], 2 => $strings["lastupdated"], 3 => $strings["owner"]), true, false);
        for ($i = 0; $i < DB_numrows($result); $i++) {
            list($listTask->pro_id[$i], $listTask->pro_progress[$i], $listTask->pro_status[$i], $listTask->pro_priority[$i], $listTask->pro_name[$i], $listTask->username[$i], $listTask->parent[$i], $listTask->lastupdated[$i], $listTask->pro_lhs[$i], $listTask->pro_rhs[$i]) = DB_fetchArray($result);
            if ($i == 0) {
                $useThisTIDforAjax = $listTask->pro_id[0];
            }
            if (strlen($listTask->pro_name[$i]) > 35) {
                $listTasks->pro_name[$i] = substr($listTasks->pro_name[$i], 0, 35) . "....";
            }
            if (strlen($listTask->username[$i]) > 15) {
                $listTask->username[$i] = substr($listTask->username[$i], 0, 12) . "..";
            }
            if ($listTask->pro_org_id[$i] == "1") {
                $listTask->pro_org_name[$i] = $strings["none"];
            }
            $idStatus = $listTask->pro_status[$i];
            $idPriority = $listTask->pro_priority[$i];
            $idProgress = $listTask->pro_progress[$i];
            $block2->openRow();
            $block2->cellProgress($progress[$idProgress]);
            $indent = '';
            if ($listTask->parent[$i] != 0) {
                $level = prj_getTaskLevel($listTask->pro_id[$i]);
                for ($z = 1; $z < $level; $z++) {
                    $indent .= '&nbsp;&nbsp;';
                }
                $indent .= $subTaskImg;
            }
            $taskname = $listTask->pro_name[$i];
            if (strlen($taskname) > $_PRJCONF['project_name_length']) {
                $taskname = substr($taskname, 0, $_PRJCONF['project_name_length']);
                $taskname .= "...";
            }
            //here's where the task is displayed
            if ($membertoken != 0) {
                $block2->cellRow($indent . $blockPage->buildLink($_CONF['site_url'] . "/nexproject/viewproject.php?mode=view&id=" . $listTask->pro_id[$i], $taskname, "context", '', $pid, $listTask->pro_id[$i]));
            } else {
                $block2->cellRow($indent . $blockPage->buildLink($_CONF['site_url'] . "/nexproject/viewproject.php?mode=view&id=" . $listTask->pro_id[$i], $taskname, "in", '', $pid, $listTask->pro_id[$i]));
            }
            $actionlinkurl = $_CONF['site_url'] . '/nexproject/viewproject.php?id=' . $listTask->pro_id[$i] . '&pid=' . $pid;
            $block2->cellRow($priority[$idPriority]);
            // $block2->cellRow($status[$idStatus]);
            $block2->cellRow(strftime("%m-%d %H:%M", $listTask->lastupdated[$i]));
            $block2->cellRow($listTask->username[$i]);
            $block2->closeRow();
        }
        $block2->closeResults();
        $pages = intval($block2->recordsTotal / $block2->rowsLimit);
        if (fmod($block2->recordsTotal, $block2->rowsLimit) > 0) {
            $pages += 1;
        }
        if ($pages > 1) {
            for ($pagecntr = 0; $pagecntr < $pages; $pagecntr++) {
                echo '<span  style="text-decoration:underline;cursor: hand" onclick=\'setCookie("mytasksmin","';
                echo $pagecntr;
                echo '","","");prj_getMyTasks("refresh", "' . $useThisTIDforAjax . '" )\'>';
                if ($limitbase == $pagecntr) {
                    echo '<span style="color:red">';
                    echo $pagecntr + 1;
                    echo '</span>';
                } else {
                    echo $pagecntr + 1;
                }
                echo '</span>&nbsp;';
            }
            echo '&nbsp;&nbsp;<span  style="text-decoration:underline;cursor: hand" TITLE="Return to page 1" onclick=\'setCookie("mytasksmin","","","");prj_getMyTasks("refresh", "' . $useThisTIDforAjax . '" )\'>';
            echo '<<</span>';
        }
        echo '</div>';
        echo '<!--endMyTasks-->';
        echo '<input type=hidden name=pid value=' . $pid . '>';
        $block2->closeToggle();
        $block2->closeFormResults();
    } else {
        $block2->noresults();
        echo '<input type=hidden name=pid value=' . $pid . '>';
        $block2->closeToggle();
        $block2->closeFormResults();
    }
    $block2->closeToggle();
    $block2->closeForm();
}
开发者ID:hostellerie,项目名称:nexpro,代码行数:101,代码来源:library.php

示例3: substr

        if ($_SESSION['profilSession'] == 1 or $_SESSION['profilSession'] == 5 or $_SESSION['idSession'] == $listTaskTimes->tim_owner[$i]) {
            $block2->openRow($listTaskTimes->tim_id[$i]);
            $block2->checkboxRow($listTaskTimes->tim_id[$i], 'true');
            $block2->cellRow($listTaskTimes->tim_mem_name[$i]);
            $block2->cellRow($listTaskTimes->tim_date[$i]);
            $block2->cellRow($listTaskTimes->tim_hours[$i]);
            $block2->cellRow($listTaskTimes->tim_created[$i]);
            $block2->cellRow($listTaskTimes->tim_modified[$i]);
            // truncate large comments to keep the display clean
            $comments = $listTaskTimes->tim_comments[$i];
            $lenComm = 40;
            if (strLen($comments) > $lenComm) {
                $comments = substr($listTaskTimes->tim_comments[$i], 0, $lenComm) . ' ...';
            }
            $block2->cellRow($comments);
            $block2->closeRow();
        }
    }
    $block2->closeResults();
    $block2->bornesFooter("1", $blockPage->bornesNumber, "", "id={$id}");
} else {
    $block2->noresults();
}
$block2->closeFormResults();
$block2->block_close();
$block2->closeForm();
$block2->openPaletteScript();
$block2->paletteScript(0, "remove", "../tasks/deletetasktime.php?task={$id}", "false,true,true", $strings["delete"]);
$block2->paletteScript(1, "edit", "../tasks/edittasktime.php?task={$id}", "false,true,false", $strings["edit"]);
$block2->closePaletteScript($comptListTaskTimes, $listTaskTimes->tim_id);
require_once "../themes/" . THEME . "/footer.php";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:addtasktime.php

示例4: block

        $block6->openRow($listNotes->note_id[$i]);
        $block6->checkboxRow($listNotes->note_id[$i]);
        $block6->cellRow(buildLink("../notes/viewnote.php?id=" . $listNotes->note_id[$i], $listNotes->note_subject[$i], LINK_INSIDE));
        if ($comptTopic != "0") {
            $block6->cellRow($topicNote[$listNotes->note_topic[$i]]);
        }
        $block6->cellRow($listNotes->note_date[$i]);
        $block6->cellRow(buildLink($listNotes->note_mem_email_work[$i], $listNotes->note_mem_login[$i], LINK_MAIL));
        if ($sitePublish == "true") {
            $block6->cellRow($statusPublish[$idPublish]);
        }
        $block6->closeRow();
    }
    $block6->closeResults();
    $block6->bornesFooter("6", $blockPage->bornesNumber, "", "searchfor={$searchfor}&amp;heading={$heading}");
    $block6->closeToggle();
    $block3->headingForm_close();
    $block6->closeFormResults();
    /*$block6->openPaletteScript();
    $block6->paletteScript(0,"export","../projects/exportproject.php?languageSession=" . $_SESSION['languageSession'] . "&type=project","false,true,false",$strings["export"]);
    $block6->closePaletteScript($comptListNotes,$listNotes->note_id);*/
}
$block7 = new block();
$block7->form = "search";
$block7->openForm("../search/createsearch.php?action=search");
$block7->openContent();
$block7->contentTitle($strings["enter_keywords"]);
echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">* " . $strings["search_for"] . " :</td><td><input value=\"{$searchfor}\" type=\"text\" name=searchfor style=\"width: 200px;\"  size=\"30\" maxlength=\"64\">\n<select name=\"heading\">\n\t\t<option selected value=\"ALL\" {$selectedAll}>" . $strings["all_content"] . "</option>\n\t\t<option value=\"notes\" {$selectedNotes}>" . $strings["notes"] . "</option>\n\t\t<option value=\"organizations\" {$selectedOrganizations}>" . $strings["organizations"] . "</option>\n\t\t<option value=\"projects\" {$selectedProjects}>" . $strings["projects"] . "</option>\n\t\t<option value=\"tasks\" {$selectedTasks}>" . $strings["tasks"] . "</option>\n\t\t<option value=\"discussions\" {$selectedDiscussions}>" . $strings["discussions"] . "</option>\n\t\t<option value=\"members\" {$selectedMembers}>" . $strings["users"] . "</option>\n</select>\n</td></tr>\n<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"submit\" name=\"Save\" value=\"" . $strings["search"] . "\"></td></tr>";
$block7->closeContent();
$block7->closeForm();
require_once "../themes/" . THEME . "/footer.php";
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:resultssearch.php

示例5: block

 $block9->openForm("../calendar/viewcalendar.php?dateCalend={$dateCalend}&amp;type={$type}#" . $block9->form . "Anchor");
 echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["view"] . " :</td><td><select name=\"S_VIEW\" onchange=\"document.caVForm.submit()\">";
 echo "<option value=\"0\"";
 if ($viewCalend == 0) {
     echo " selected";
 }
 echo ">" . $strings['cal_personal'] . "</option>";
 for ($t = 0; $t < $comptTeamList; $t++) {
     echo "<option value=\"" . $teamList->tea_project[$t] . "\"";
     if ($viewCalend == $teamList->tea_project[$t]) {
         echo " selected";
     }
     echo ">" . $strings['project'] . ":" . $teamList->tea_pro_name[$t] . "</option>";
 }
 echo "</select></td></tr>";
 $block9->closeForm();
 //--- content -----
 $block2 = new block();
 $block2->headingForm("{$monthName} {$year}");
 $block2->openContent();
 echo "<tr><td>";
 echo "<table border=0 cellpadding=0 cellspacing=2 width=100% class=listing><tr>";
 for ($daynumber = 1; $daynumber < 8; $daynumber++) {
     echo "<td width=14% class=calendDays>&nbsp;{$dayNameArray[$daynumber]}</td>";
 }
 echo "</tr>";
 // Print the calendar
 echo "<tr>";
 if ($viewCalend == 0) {
     $tmpquery = "WHERE tas.assigned_to = '" . $_SESSION['idSession'] . "' ORDER BY tas.name";
 } else {
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewcalendar.php

示例6: count

$comptListAssign = count($listAssign->ass_id);
$block3->openResults($checkbox = "false");
$block3->labels($labels = array(0 => $strings["comment"], 1 => $strings["assigned_by"], 2 => $strings["to"], 3 => $strings["assigned_on"]), "false");
for ($i = 0; $i < $comptListAssign; $i++) {
    $block3->openRow();
    $block3->checkboxRow($listAssign->ass_id[$i], $checkbox = "false");
    if ($listAssign->ass_comments[$i] != "") {
        $block3->cellRow($listAssign->ass_comments[$i]);
    } else {
        if ($listAssign->ass_assigned_to[$i] == "0") {
            $block3->cellRow($strings["task_unassigned"]);
        } else {
            $block3->cellRow($strings["task_assigned"] . " " . $listAssign->ass_mem2_name[$i] . " (" . $listAssign->ass_mem2_login[$i] . ")");
        }
    }
    $block3->cellRow(buildLink($listAssign->ass_mem1_email_work[$i], $listAssign->ass_mem1_login[$i], LINK_MAIL));
    if ($listAssign->ass_assigned_to[$i] == "0") {
        $block3->cellRow($strings["unassigned"]);
    } else {
        $block3->cellRow(buildLink($listAssign->ass_mem2_email_work[$i], $listAssign->ass_mem2_login[$i], LINK_MAIL));
    }
    $block3->cellRow(createDate($listAssign->ass_assigned[$i], $_SESSION['timezoneSession']));
    $block3->closeRow();
}
$block3->closeResults();
$block3->closeToggle();
$block3->closeFormResults();
$block3->headingForm_close();
$block3->closeForm();
//was missing ????
require_once "../themes/" . THEME . "/footer.php";
开发者ID:jgatica,项目名称:Netoffice,代码行数:31,代码来源:viewtask.php

示例7:

 $p->set_var('siteurl', $_CONF['site_url']);
 $p->set_var('gdate1', $gdate1);
 $p->set_var('gdate2', $gdate2);
 $p->set_var('strmindate', $str_mindate);
 $p->set_var('strmaxdate', $str_maxdate);
 $p->set_var('pid', $pid);
 $p->set_var('windowwidth', $_COOKIE['windowwidth']);
 $p->set_var('mingraphwidth', $_PRJCONF['min_graph_width']);
 $p->set_var('checked', $checked);
 $p->parse('output', 'ganttheader');
 echo $p->finish($p->get_var('output'));
 echo '<div id="ganttChartDIV" style="margin-top:10px;margin-bottom:10px;">';
 include "taskgantt.php";
 echo '</div>';
 $blockg->closeToggle();
 $blockg->closeForm();
 /************************************************/
 //discussion board
 /************************************************/
 $pcid = DB_getItem($_TABLES['prj_projects'], 'cid', "pid = {$pid}");
 if ($_POST['select_cid'] == '') {
     $cid = DB_getItem($_TABLES['prj_projects'], 'cid', "pid = {$pid}");
 } else {
     $cid = $_POST['select_cid'];
 }
 if ($A['is_using_docmgmt_flag'] == 'Y') {
     $pcname = DB_getItem($_TABLES['nxfile_categories'], "name", "cid={$pcid}");
     $cname = DB_getItem($_TABLES['nxfile_categories'], "name", "cid={$cid}");
     $selectCategoryHTML = '<span style="padding-left:10px;">Select Category:';
     $selectCategoryHTML .= '<select name="select_cid"><option value="' . $pcid . '">' . $pcname . '</option>';
     $selectCategoryHTML .= fm_recursiveCatAddFileList($cname, $pcid) . '</select>';
开发者ID:hostellerie,项目名称:nexpro,代码行数:31,代码来源:viewproject.php

示例8: block

}
//---- Update file Block --------------------------------
if ($fileDetail->fil_owner[0] == $_SESSION['idSession']) {
    $block4 = new block();
    $block4->form = "filedetails";
    echo "<a name=\"filedetailsAnchor\"></a>";
    echo "<form accept-charset=\"UNKNOWN\" method=\"POST\" action=\"../linkedcontent/viewfile.php?action=update&amp;id=" . $fileDetail->fil_id[0] . "#filedetailsAnchor\" name=\"filedetailsForm\" enctype=\"multipart/form-data\"><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"100000000\"><input type=\"hidden\" name=\"maxCustom\" value=\"" . $projectDetail->pro_upload_max[0] . "\">";
    if ($error4 != "") {
        $block4->headingError($strings["errors"]);
        $block4->contentError($error4);
    }
    $block4->headingForm($strings["ifc_update_file"]);
    $block4->openContent();
    $block4->contentTitle($strings["details"]);
    echo "\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\"></td><td class=\"odd\">" . $strings["version_increm"] . "<br>\n\t<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t<tr><td align=\"right\">0.01</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"0.01\"></td></tr>\n\t<tr><td align=\"right\">0.1</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"0.1\" checked></td></tr>\n\t<tr><td align=\"right\">1.0</td><td width=\"30\" align=\"right\"><input name=\"change_file_version\" type=\"radio\" value=\"1.0\"></td></tr>\n\t</table>\n\t</td></tr>";
    echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["status"] . " :</td><td><select name=\"statusField\">";
    $comptSta = count($statusFile);
    for ($i = 0; $i < $comptSta; $i++) {
        if ($i == "2") {
            echo "<option value=\"{$i}\" selected>{$statusFile[$i]}</option>";
        } else {
            echo "<option value=\"{$i}\">{$statusFile[$i]}</option>";
        }
    }
    echo "</select></td></tr>";
    echo "<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">* " . $strings["upload"] . " :</td><td><input size=\"44\" style=\"width: 400px\" name=\"upload\" type=\"FILE\"></td></tr>\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">" . $strings["comments"] . " :</td><td><textarea rows=\"3\" style=\"width: 400px; height: 50px;\" name=\"c\" cols=\"43\">{$c}</textarea></td></tr>\n\t<tr class=\"odd\"><td valign=\"top\" class=\"leftvalue\">&nbsp;</td><td><input type=\"SUBMIT\" value=\"" . $strings["ifc_update_file"] . "\"></td></tr>";
    $block4->closeContent();
    $block4->headingForm_close();
    $block4->closeForm();
}
require_once "../themes/" . THEME . "/footer.php";
开发者ID:TICanalyste,项目名称:netOffice--remix-,代码行数:31,代码来源:viewfile.php


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