Beispiel #1
0
<?php

// --------------------------------------------------------------------
// wo_edit_form.php -- Allows editing on WO.
//
// Created: 01/04/16 DLB
// --------------------------------------------------------------------
echo '<div class="content_area">' . "\n";
echo '<div class="page_title"> ' . $pagetitle . '</div>' . "\n";
if (!empty($wo)) {
    RenderField("wo_top", "wo_WIDStr", "", $wo["WIDStr"]);
    echo '<div style="clear: both;"></div>' . "\n";
    //RenderField("wo_top", "wo_Title",         "Title:",               $wo["Title"]                 );
    //echo '<div style="clear: both;"></div>' . "\n";
}
if (!empty($success_msg)) {
    echo '<div class="inputform_msg" id="inputform_success_msg" >' . $success_msg . "</div>";
}
if (!empty($error_msg)) {
    echo '<div class="inputform_msg" id="inputform_error_msg" >' . $error_msg . "</div>";
}
if (!empty($doform)) {
    echo '<div class="inputform_area">' . "\n";
    echo '<form action="wo_edit.php" method="post">' . "\n";
    RenderParams($param_list, "wo_new_");
    echo '<div style="clear: both;"></div>' . "\n";
    echo '<div class="btn_form_submit_div">';
    echo '<input class="btn_form_submit" type="submit" value="Submit">' . "\n";
    echo '</div>';
    echo '</form></div>' . "\n";
}
<?php

// --------------------------------------------------------------------
// wo_add_data_form.php -- F0rm for appending data or pic to a WO.
//
// Created: 01/03/16 DLB
// --------------------------------------------------------------------
echo '<div class="content_area">' . "\n";
echo '<div class="page_title"> ' . $pagetitle . '</div>' . "\n";
if (!empty($wo)) {
    RenderField("wo_top", "wo_WIDStr", "", $wo["WIDStr"]);
    echo '<div style="clear: both;"></div>' . "\n";
    RenderField("wo_top", "wo_Title", "Title:", $wo["Title"]);
    echo '<div style="clear: both;"></div>' . "\n";
}
if (!empty($success_msg)) {
    echo '<div class="inputform_msg" id="inputform_success_msg" >' . $success_msg . "</div>";
}
if (!empty($error_msg)) {
    echo '<div class="inputform_msg" id="inputform_error_msg" >' . $error_msg . "</div>";
}
if (!empty($doform)) {
    echo '<div class="inputform_area">' . "\n";
    echo '<form action="wo_add_data.php" method="post" enctype="multipart/form-data">' . "\n";
    RenderParams($param_list, "wo_add_data_");
    echo '<div style="clear: both;"></div>' . "\n";
    echo '<div class="btn_form_submit_div">';
    echo '<input class="btn_form_submit" type="submit" value="Submit">' . "\n";
    echo '</div>';
    echo '</form></div>' . "\n";
}
Beispiel #3
0
<?php

// --------------------------------------------------------------------
// team_ipt_form.php -- HTML fragment to for your work page.
//
// Created: 01/04/16 DLB
// --------------------------------------------------------------------
echo '<div class="content_area">';
echo '<div class="page_title">' . $pagetitle . '</div>' . "\n";
if (!empty($success_msg)) {
    echo '<div class="inputform_msg" id="inputform_success_msg" >' . $success_msg . "</div>";
}
if (!empty($error_msg)) {
    echo '<div class="inputform_msg" id="inputform_error_msg" >' . $error_msg . "</div>";
}
RenderField("", "teamname", "IPT Team: ", $teamname);
echo '<div style="clear: both"></div>' . "\n";
RenderField("", "searchtype", "", $searchtitle);
echo '<div style="clear: both"></div>' . "\n";
if (!empty($limittext)) {
    echo '<p>' . $limittext . '</p>' . "\n";
}
if (!empty($tabledata) && !empty($tableheader)) {
    RenderTable($tableheader, $tabledata, "team_ipt");
} else {
    echo '<div id="none">None Found.</div>' . "\n";
}
echo '</div' . "\n";
 RenderField("wo", "wod_DateCreated", "Created:", $wo["DateCreated"]);
 RenderField("wo", "wod_IsApproved", "Approved:", YNstr($wo["IsApproved"]));
 RenderField("wo", "wod_ApprovedByCap", "Captain:", YNstr($wo["ApprovedByCap"]));
 RenderField("wo", "wod_Finished", "Finished:", YNstr($wo["Finished"]));
 RenderField("wo", "wod_Closed", "Closed:", YNstr($wo["Closed"]));
 echo '</div>' . "\n";
 if (!empty($primarypic_url)) {
     echo '<div class="wod_pic">' . "\n";
     echo '<a href="' . $primarypic_ref . '"><img src="' . $primarypic_url . '"></a>' . "\n";
     echo '</div>' . "\n";
 }
 //ren("Revision",      "Revision:",            RevisionToStr($wo["Revision"], $wo["IsApproved"]) );
 //ren("Approved",      "Normal Approval:",     YNstr($wo["Approved"])       );
 //ren("AuthorID",      "AuthorID:",            $wo["AuthorID"]              );
 echo '<div style="clear: both;"></div>' . "\n";
 RenderField("wo", "wod_Work", "Work To Do:", $wo["Description"], true);
 echo '<div style="clear: both;"></div>' . "\n";
 if (!empty($assigned_workers)) {
     echo '<div id="assigned_worker_block">' . "\n";
     echo '<div id="assigned_worker_label">Assigned Workers:</div>' . "\n";
     echo '<div id="assigned_worker_list">' . "\n";
     foreach ($assigned_workers as $a) {
         echo '<div class="assigned_worker">' . $a["FullName"] . '</div>' . "\n";
     }
     echo '</div>' . "\n";
     echo '</div>' . "\n";
     echo '<div style="clear: both;"></div>' . "\n";
 }
 if (!empty($ap)) {
     echo '<div id="appened_data_label">Appened Data:</div>' . "\n";
     echo '<div id="appened_data_list">' . "\n";
Beispiel #5
0
<?php

// --------------------------------------------------------------------
// team_form.php -- Displays info for entire team.
//
// Created: 01/04/16 DLB
// --------------------------------------------------------------------
echo '<div class="content_area">' . "\n";
echo '<div class="page_title"> ' . $pagetitle . '</div>' . "\n";
if (!empty($success_msg)) {
    echo '<div class="inputform_msg" id="inputform_success_msg" >' . $success_msg . "</div>";
}
if (!empty($error_msg)) {
    echo '<div class="inputform_msg" id="inputform_error_msg" >' . $error_msg . "</div>";
}
echo '<div id="main_stats_block">' . "\n";
RenderField("team", "Opened", "Opened:", $nOpened);
RenderField("team", "Urgent", "Urgent:", $nUrgent);
RenderField("team", "Closed", "Closed:", $nClosed);
echo '</div>' . "\n";
echo '<div style="clear: both;"></div>' . "\n";
if (!empty($tabledata) && !empty($tableheader)) {
    RenderTable($tableheader, $tabledata, "team");
}
if (!empty($instructions)) {
    echo '<div class="inputfrom_instructions">' . "\n";
    echo $instructions;
    echo '</div>' . "\n";
}
echo '</div' . "\n";