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


PHP Task::getNumRows方法代码示例

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


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

示例1: generateTodaysTasksDisplay

 /**
  * A custom method within the Plugin to generate the content
  * @return string: HTML output, when there is at least one task for today.
  * @return void : if there is not task for today.
  * @see class/Task.class.php
  */
 function generateTodaysTasksDisplay()
 {
     $output = '';
     $do_task = new Task();
     $do_task->getAllTasksToday();
     if ($do_task->getNumRows()) {
         $output .= '<div class="task_today">';
         while ($do_task->next()) {
             $output .= "\n" . '<div id="t' . $do_task->idtask . '" class="task_item">';
             $output .= "<table><tr><td>";
             $output .= '<input type="checkbox" name="c' . $do_task->idtask . '" class="task_checkbox" onclick="fnTaskComplete(\'' . $do_task->idtask . '\')" /></td>';
             $output .= '<td><span class="task_desc">' . $do_task->task_category . ' ' . $do_task->task_description . '.</span></td></tr></table></div>';
         }
         $output .= '</div>';
         return $output;
     } else {
         $this->setIsActive(false);
     }
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:25,代码来源:DashboardTodaysTask.class.php

示例2: while

</script>
<div class="content">
    <table class="main">
        <tr>
            <td class="i_main_right" >
                <div class="mainheader">
                    <div class="pad20">
                        <span class="headline14">Welcome</span>
                    </div>
                </div>
                <div class="contentfull">
                    Welcome back <?php 
// print_r($_SESSION['do_User']);
echo $_SESSION['do_User']->firstname;
$do_task->getAllTasksOverdue();
if ($do_task->getNumRows()) {
    ?>
                    <div class="task">
                        <div class="headline10" style="color: #ff0000;">Your Overdue taks</div>
                        <?php 
    while ($do_task->next()) {
        $category = $do_task_category->getTaskCategoryName($do_task->category);
        ?>
                        <span id="t<?php 
        echo $do_task->idtask;
        ?>
" class="task_item">
                            <input type="checkbox" name="c<?php 
        echo $do_task->idtask;
        ?>
" class="task_checkbox" onclick="fnTaskComplete('<?php 
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:i_index.php

示例3: _

echo _('select all');
?>
</a></span> | <span class="bluelink"><a href="#" onclick="fnSelNone(); return false;"><?php 
echo _('select none');
?>
</a></span> )</span>
                            </div>



<!--Over Due Tasks-->

            <?php 
$num_tasks_overdue = $do_task->getNumAllTasksOverdue();
$do_task->getAllTasksOverdue();
$num_tasks_overdue_limit = $do_task->getNumRows();
if ($do_task->getNumRows()) {
    ?>
		<div class="tasks">

		  <div class="headline10" style="color: #ff0000;"><?php 
    echo _('Overdue');
    ?>
</div>
		  <div class="contentfull">

		    <div class="ddtasks">
		      <div id="tasks_overdue">
			<?php 
    echo $do_task->viewTaskList('overdue');
    //echo $do_task->viewTasks();
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:tasks.php

示例4: generateContactTasksDisplay

 /**
  * A custom method within the Plugin to generate the content
  * 
  */
 function generateContactTasksDisplay()
 {
     $output = '';
     $idcontact = $_SESSION['ContactEditSave']->idcontact;
     $show_tasks_box = false;
     $ContactRelatedOverdueTask = '';
     $do_task_show = new Task();
     $do_task_show->getContactRelatedOverdueTask($idcontact);
     if ($do_task_show->getNumRows()) {
         $ContactRelatedOverdueTask = $do_task_show->viewContactsTasks();
         $show_tasks_box = true;
     }
     $ContactRelatedTodayTask = '';
     $do_task_show->getContactRelatedTodayTask($idcontact);
     if ($do_task_show->getNumRows()) {
         $ContactRelatedTodayTask = $do_task_show->viewContactsTasks();
         $show_tasks_box = true;
     }
     $ContactRelatedTomorrowTask = '';
     $do_task_show->getContactRelatedTomorrowTask($idcontact);
     if ($do_task_show->getNumRows()) {
         $ContactRelatedTomorrowTask = $do_task_show->viewContactsTasks();
         $show_tasks_box = true;
     }
     $ContactRelatedThisWeekTask = '';
     $do_task_show->getContactRelatedThisWeekTask($idcontact);
     if ($do_task_show->getNumRows()) {
         $ContactRelatedThisWeekTask = $do_task_show->viewContactsTasks();
         $show_tasks_box = true;
     }
     $ContactRelatedNextWeekTasks = '';
     $do_task_show->getContactRelatedNextWeekTasks($idcontact);
     if ($do_task_show->getNumRows()) {
         $ContactRelatedNextWeekTasks = $do_task_show->viewContactsTasks();
         $show_tasks_box = true;
     }
     $ContactRelatedLaterTasks = '';
     $do_task_show->getContactRelatedLaterTasks($idcontact);
     if ($do_task_show->getNumRows()) {
         $ContactRelatedLaterTasks = $do_task_show->viewContactsTasks();
         $show_tasks_box = true;
     }
     if ($show_tasks_box === true) {
         $output .= '<b>' . _('Tasks Related to this Contact') . '</b><br />';
         if ($ContactRelatedOverdueTask != '') {
             $output .= '<div class="headline10" style="color: #ff0000;">Overdue</div>';
             $output .= $ContactRelatedOverdueTask;
         }
         if ($ContactRelatedTodayTask != '') {
             $output .= '<div class="headline10">Today</div>';
             $output .= $ContactRelatedTodayTask;
         }
         if ($ContactRelatedTomorrowTask != '') {
             $output .= '<div class="headline10">Tomorrow</div>';
             $output .= $ContactRelatedTomorrowTask;
         }
         if ($ContactRelatedThisWeekTask != '') {
             $output .= '<div class="headline10">This week</div>';
             $output .= $ContactRelatedThisWeekTask;
         }
         if ($ContactRelatedNextWeekTasks != '') {
             $output .= '<div class="headline10">Next week</div>';
             $output .= $ContactRelatedNextWeekTasks;
         }
         if ($ContactRelatedLaterTasks != '') {
             $output .= '<div class="headline10">Later</div>';
             $output .= $ContactRelatedLaterTasks;
         }
         return $output;
     } else {
         $this->setIsActive(false);
     }
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:77,代码来源:ContactTasksBlock.class.php


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