From a874fff5434f9daa3a2a0775310ef9d0c813f666 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 27 Dec 2004 20:58:52 +0000 Subject: [PATCH] r35: Presentation code moved out of PHP files and into templates. Error and stop messages are still hard-coded and will be removed at a later time. --- editcomment.php | 14 +- editreport.php | 126 +++++---- includes/functions_template.php | 309 +++++++++++++++++++++++ index.php | 33 +-- login.php | 15 +- newcomment.php | 12 +- newreport.php | 114 ++++----- register.php | 23 +- showreport.php | 122 ++++----- templates/default/SHOWREPORT.tpl | 16 ++ templates/default/TRACKERHOME.tpl | 13 + templates/default/doctype.tpl | 2 + templates/default/editcomment.tpl | 10 + templates/default/editreport.tpl | 20 ++ templates/default/footer.tpl | 0 templates/default/header.tpl | 0 templates/default/headinclude.tpl | 0 templates/default/login.tpl | 8 + templates/default/newcomment.tpl | 21 ++ templates/default/newreport.tpl | 23 ++ templates/default/productselect.tpl | 12 + templates/default/register.tpl | 11 + templates/default/selectoptgroup.tpl | 3 + templates/default/selectoption.tpl | 1 + templates/default/showreport_comment.tpl | 18 ++ templates/default/trackerhome_bits.tpl | 8 + templates/default/tsinfo.php | 24 ++ 27 files changed, 734 insertions(+), 224 deletions(-) create mode 100644 includes/functions_template.php create mode 100644 templates/default/SHOWREPORT.tpl create mode 100644 templates/default/TRACKERHOME.tpl create mode 100644 templates/default/doctype.tpl create mode 100644 templates/default/editcomment.tpl create mode 100644 templates/default/editreport.tpl create mode 100644 templates/default/footer.tpl create mode 100644 templates/default/header.tpl create mode 100644 templates/default/headinclude.tpl create mode 100644 templates/default/login.tpl create mode 100644 templates/default/newcomment.tpl create mode 100644 templates/default/newreport.tpl create mode 100644 templates/default/productselect.tpl create mode 100644 templates/default/register.tpl create mode 100644 templates/default/selectoptgroup.tpl create mode 100644 templates/default/selectoption.tpl create mode 100644 templates/default/showreport_comment.tpl create mode 100644 templates/default/trackerhome_bits.tpl create mode 100644 templates/default/tsinfo.php diff --git a/editcomment.php b/editcomment.php index f23aa35..067bece 100644 --- a/editcomment.php +++ b/editcomment.php @@ -10,6 +10,10 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'editcomment' +); + require_once('./global.php'); sanitize(array('commentid' => INT)); @@ -91,12 +95,10 @@ if ($_POST['do'] == 'update') if ($_REQUEST['do'] == 'edit') { - echo "
Bug: $bug[summary]
"; - echo "
Comment posted on: " . datelike('standard', $comment['dateline']) . "
"; - echo "
Comment posted by: " . construct_user_display($comment) . "
"; - echo '
'; - echo '
Comment:
'; - echo '
'; + $comment['posttime'] = datelike('standard', $comment['dateline']); + $comment['postby'] = construct_user_display($comment); + $comment['comment'] = htmlspecialcharslike($comment['comment']); + eval('$tpl->flush("' . $tpl->fetch('editcomment') . '");'); } /*=====================================================================*\ diff --git a/editreport.php b/editreport.php index e3137dd..0e81c09 100644 --- a/editreport.php +++ b/editreport.php @@ -10,6 +10,11 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'editreport', + 'productselect' +); + require_once('./global.php'); sanitize(array('bugid' => INT)); @@ -92,44 +97,55 @@ if ($_POST['do'] == 'update') if ($_REQUEST['do'] == 'edit') { - echo '
'; - echo ''; - echo "
Bug ID: $bug[bugid]
"; - echo "
Summary/title: "; + foreach ($bugsys->datastore['severity'] AS $severity) + { + $value = $severity['severityid']; + $selected = iff($severity['severityid'] == $bug['severity'], true, false); + $label = $severity['severity']; + eval('$select[severity] .= "' . $tpl->fetch('selectoption') . '";'); + } + + $show['changestatus'] = iff(can_perform('canchangestatus'), true, false); if (can_perform('canchangestatus')) { - echo '
Priority:
'; - echo '
Status:
'; - echo '
Resolution:
'; } + + $show['assign'] = iff(can_perform('canassign'), true, false); if (can_perform('canassign')) { - echo '
Assigned to:
'; } - echo '
'; - echo '
'; + + eval('$tpl->flush("' . $tpl->fetch('editreport') . '");'); } // ################################################################### @@ -199,45 +215,46 @@ if ($_POST['do'] == 'updateproduct') if ($_REQUEST['do'] == 'editproduct') { sanitize(array('product' => INT, 'component' => INT, 'version' => INT)); - - // the user can hit the back button without reposting data... - if (!$vars['product'] OR !$vars['component']) - { - $method = 'get'; - } - else - { - $method = 'post'; - } - - echo '
'; - - $do = 'editproduct'; + + $select['do'] = 'editproduct'; + $select['script'] = 'editreport'; if (!$vars['product']) { - echo 'Product: '; + + $select['display'] = 'Product'; + $select['name'] = 'product'; + eval('$tpl->flush("' . $tpl->fetch('productselect') . '");'); } else if (!$vars['component']) { - echo 'Component: '; - echo ''; + + $select['display'] = 'Component'; + $select['name'] = 'component'; + eval('$tpl->flush("' . $tpl->fetch('productselect') . '");'); } else if (!$vars['version']) { - echo 'Version: '; - echo ''; - echo ''; - $do = 'updateproduct'; + $select['display'] = 'Version'; + $select['name'] = 'version'; + $select['do'] = 'updateproduct'; + $select['method'] = 'post'; + + eval('$tpl->flush("' . $tpl->fetch('productselect') . '");'); } - - echo ''; - echo '
'; - echo '
'; } /*=====================================================================*\ diff --git a/includes/functions_template.php b/includes/functions_template.php new file mode 100644 index 0000000..cce3128 --- /dev/null +++ b/includes/functions_template.php @@ -0,0 +1,309 @@ +cache) > 0) + { + user_error('You cannot Template::cache() more than once per initialization', E_USER_WARNING); + } + else + { + foreach ($namearray AS $name) + { + $template = $this->_load($name); + $template = $this->_parse($template); + $this->cache["$name"] = $template; + } + } + } + + // ###################### Start Template::fetch ###################### + function fetch($name) + { + if (isset($this->cache["$name"])) + { + $template = $this->cache["$name"]; + } + else + { + $this->uncached[] = $name; + $template = $this->_load($name); + $template = $this->_parse($template); + } + + $this->usage["$name"]++; + + return $template; + } + + // ###################### Start Template::flush ###################### + function flush($template) + { + global $DB_sql; + + ob_start(); + + if (empty($template)) + { + user_error('Template::flush() produced no output', E_USER_WARNING); + exit; + } + + if (DEVDEBUG AND $_GET['query']) + { + if (is_array($DB_sql->query_history)) + { + echo '
';
+				foreach ($DB_sql->query_history AS $query)
+				{
+					echo $query . "\n\n
\n\n"; + } + echo '
'; + } + exit; + } + + if ($this->doneflush) + { + user_error('You cannot Template::flush() more than once per initialization', E_USER_WARNING); + exit; + } + + if (DEVDEBUG) + { + foreach ($this->usage AS $name => $count) + { + $optlist[] = '"; + } + + $debug .= "\r

\r\r"; + $debug .= "\r\t\r\t"; + $debug .= "\r\t\r\r\r\t
" . 'construct_debug_info_list()' . "$revisionTotal queries used: " . sizeof($DB_sql->query_history) . ""; + $debug .= "
"; + $debug .= "\r" . iff(is_array($this->uncached), sizeof($uncached) . " Uncached Template(s)\r
\r") . "\r

"; + + $template = str_replace('', "\r\r$debug\r\r\r", $template); + } + + print(stripslashes($template)); + } + + // ###################### Start Template::_load ###################### + function _load($name) + { + global $bugsys; + + if (($template = @file_get_contents("{$bugsys->options['ts_includepath']}$name.tpl")) !== false) + { + return $template; + } + else + { + echo "could not load template file {$bugsys->options['ts_includepath']}$name.tpl"; + exit; + } + } + + // ###################### Start Template::_parse ##################### + function _parse($template) + { + $template = stripslashes($template); + $template = str_replace('"', '\"', $template); + $template = $this->_parse_phrases($template); + $template = $this->_parse_conditionals($template); + return $template; + } + + // ################## Start Template::_parse_phrases ################# + function _parse_phrases($template) + { + $tag_start = ' + $close_of_open = strpos($phrase_bunch, $tag_start_end); + if ($close_of_open === false) + { + break; + } + + // Extract the opening tag so it can be parsed + $init_tag = substr($phrase_bunch, 0, ($close_of_open + strlen($tag_start_end))); + $init_tag = str_replace($tag_start, '', $init_tag); + $init_tag = substr($init_tag, 0, strlen($init_tag) - 1); + + // Get the args out of the tag + $args = preg_split('#([0-9].*?)=#', $init_tag); + foreach ($args AS $arg) + { + if ($arg AND $arg != ' ') + { + $arg = trim($arg); + $arg = substr($arg, 2); + $arg = substr($arg, 0, strlen($arg) - 2); + $arglist[] = $arg; + } + } + + // Just get the phrase name + $phrase_name = preg_replace('#(.*?)#i', '$2', $phrase_bunch); + + // Wrap the parsed data into the build function + $function_wrap = '" . construct_phrase(\'' . $phrase_name . '\', "' . implode('", "', $arglist) . '") . "'; + + // Replace the fully-parsed string back into the template + $template = substr_replace($template, $function_wrap, $location_start, $location_end + strlen($tag_end) - $location_start); + + unset($arglist); + } + + return $template; + } + + // ############### Start Template::_parse_conditionals ############### + function _parse_conditionals($template) + { + // Tag locations + $location_start = -1; + $location_end = -1; + + // Tag data + $tag_start = ' 1) + { + $location_start = $location_start + 1; + $location_end = $location_start + 2; + } + + // Strip out the opening ' 2) + { + user_error('Multiple else statements encountered while parsing conditionals in template', E_USER_WARNING); + } + + // Set the data + $iftrue = $data[0]; + $iffalse = $data[1]; + } + // Nope, reassign variables + else + { + $iftrue = $parsed; + $iffalse = null; + } + + // Put the condition and iftrue in the iff() function + $parsed_expression = '" . iff(' . stripslashes($expression_condition) . ',"' . $iftrue . '","' . $iffalse . '") . "'; + + // Parse the iff()'d expression back into the template data + $template = substr_replace($template, $parsed_expression, $location_start, $location_end + strlen($tag_end) - $location_start); + } + + // Repeat this process until it can't find any more + // expressions, then send back the parsed template data + // for final output + return $template; + } +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file diff --git a/index.php b/index.php index 73c9fca..b2fdeba 100644 --- a/index.php +++ b/index.php @@ -10,6 +10,11 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'TRACKERHOME', + 'trackerhome_bits' +); + require_once('./global.php'); if (!can_perform('canviewbugs')) @@ -22,7 +27,7 @@ if (!can_perform('canviewbugs')) // #*# pagination needs to be done here -$bugs = $DB_sql->query(" +$bugs_fetch = $DB_sql->query(" SELECT bug.*, user1.displayname AS firstreport, user2.displayname AS lastpost FROM " . TABLE_PREFIX . "bug AS bug LEFT JOIN user AS user1 @@ -32,25 +37,21 @@ $bugs = $DB_sql->query(" ORDER BY bug.lastposttime DESC" ); -echo ''; -echo ''; - - -while ($bug = $DB_sql->fetch_array($bugs)) +while ($bug = $DB_sql->fetch_array($bugs_fetch)) { - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + $bug['product'] = $bugsys->datastore['product']["$bug[productid]"]['title']; + $bug['version'] = $bugsys->datastore['version']["$bug[versionid]"]['version']; + $bug['status'] = $bugsys->datastore['status']["$bug[status]"]['status']; + $bug['resolution'] = $bugsys->datastore['resolution']["$bug[resolution]"]['resolution']; + $bug['lastpostinfo'] = datelike('standard', $bug['lastposttime']) . ' by ' . $bug['lastpost']; + eval('$bugs .= "' . $tpl->fetch('trackerhome_bits') . '";'); } -echo '
Bug IDTitleReporterProduct/VersionStatus/ResolutionLast Post
$bug[bugid]$bug[summary]$bug[firstreport]" . $bugsys->datastore['product']["$bug[productid]"]['title'] . '/' . $bugsys->datastore['version']["$bug[versionid]"]['version'] . "" . $bugsys->datastore['status']["$bug[status]"]['status'] . '/' . $bugsys->datastore['resolution']["$bug[resolution]"]['resolution'] . "" . datelike('standard', $bug['lastposttime']) . ' by ' . $bug['lastpost'] . "
'; +$DB_sql->free_result($bugs_fetch); + +$show['newreport'] = iff(can_perform('cansubmitbugs'), true, false); -echo '[New Report]'; +eval('$tpl->flush("' . $tpl->fetch('TRACKERHOME') . '");'); /*=====================================================================*\ || ################################################################### diff --git a/login.php b/login.php index cfba348..e35da2a 100755 --- a/login.php +++ b/login.php @@ -10,6 +10,10 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'login' +); + require_once('./global.php'); // ################################################################### @@ -24,16 +28,7 @@ if ($bugsys->userinfo['userid'] AND $_REQUEST['do'] != 'logout' AND $_POST['do'] if (empty($_REQUEST['do'])) { - echo << - - -Email:
-Password:
-Remember Me: Yes
- - -EOF; + eval('$tpl->flush("' . $tpl->fetch('login') . '");'); } // ################################################################### diff --git a/newcomment.php b/newcomment.php index 60913dd..170df50 100644 --- a/newcomment.php +++ b/newcomment.php @@ -10,6 +10,10 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'newcomment' +); + require_once('./global.php'); if (!can_perform('canpostcomments')) @@ -68,13 +72,7 @@ if ($_REQUEST['do'] == 'add') exit; } - echo "
New comment for: $bug[summary]
"; - echo '
'; - echo '
Comment:
'; - echo '
'; - - echo '

'; - echo '
Summary Report: ' . $bug['summary'] . '
' . $bug['comment'] . '
'; + eval('$tpl->flush("' . $tpl->fetch('newcomment') . '");'); } /*=====================================================================*\ diff --git a/newreport.php b/newreport.php index db9dcd3..6591a71 100755 --- a/newreport.php +++ b/newreport.php @@ -10,6 +10,11 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'newreport', + 'productselect' +); + require_once('./global.php'); if (!can_perform('cansubmitbugs')) @@ -184,44 +189,42 @@ if ($_REQUEST['do'] == 'add') 'version' => INT) ); - // the user can hit the back button without reposting data... - if (!$vars['product'] OR !$vars['component'] OR !$vars['version']) - { - $method = 'get'; - } - else - { - $method = 'post'; - } - - echo '
'; - - $do = 'add'; + $select['script'] = 'newreport'; + $select['do'] = 'add'; if (!$vars['product']) { - echo 'Product: '; + + $select['display'] = 'Product'; + $select['name'] = 'product'; + eval('$tpl->flush("' . $tpl->fetch('productselect') . '");'); } else if (!$vars['component']) { - echo 'Component: '; - echo ''; + + $select['display'] = 'Component'; + $select['name'] = 'component'; + eval('$tpl->flush("' . $tpl->fetch('productselect') . '");'); } else if (!$vars['version']) { - echo 'Version: '; - echo ''; - echo ''; + $select['display'] = 'Version'; + $select['name'] = 'version'; + eval('$tpl->flush("' . $tpl->fetch('productselect') . '");'); } else { - $do = 'insert'; - echo '
Summary/Title:
'; - - echo '
Severity:
'; + + $show['changestatus'] = iff(can_perform('canchangestatus'), true, false); if (can_perform('canchangestatus')) { - echo '
Priority:
'; - echo '
Status:
'; - echo '
Resolution:
'; } + $show['assign'] = iff(can_perform('canassign'), true, false); + if (can_perform('canassign')) { - echo '
Assigned to:
'; } - echo '
Detailed description:
'; - - echo ''; - echo ''; - echo ''; - } - - echo '
'; - - echo '
'; + eval('$tpl->flush("' . $tpl->fetch('newreport') . '");'); + } } /*=====================================================================*\ diff --git a/register.php b/register.php index 2da6de8..b58a5cf 100755 --- a/register.php +++ b/register.php @@ -10,6 +10,10 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'register' +); + require_once('./global.php'); // ################################################################### @@ -30,24 +34,13 @@ if (!$bugsys->options['allownewreg']) if (empty($_REQUEST['do'])) { - foreach ($bugsys->datastore['language'] AS $languageid => $language) + foreach ($bugsys->datastore['language'] AS $value => $temp) { - $opts .= ""; + $label = $temp['title']; + eval('$opts .= "' . $tpl->fetch('selectoption') . '";'); } - echo << - -Email:
-Confirm Email:
-Display Name:
-Password:
-Confirm Password:
-Show My Email Publicly: Yes
-Language:
- - -EOF; + eval('$tpl->flush("' . $tpl->fetch('register') . '");'); } // ################################################################### diff --git a/showreport.php b/showreport.php index 06c85c7..4d6c680 100644 --- a/showreport.php +++ b/showreport.php @@ -10,6 +10,11 @@ || ################################################################### || \*=====================================================================*/ +$fetchtemplates = array( + 'SHOWREPORT', + 'showreport_comment' +); + require_once('./global.php'); if (!can_perform('canviewbugs')) @@ -20,76 +25,77 @@ if (!can_perform('canviewbugs')) // ################################################################### -if (empty($_REQUEST['do'])) +sanitize(array('bugid' => INT)); + +$bug = $DB_sql->query_first(" + SELECT bug.*, user.displayname, user.email, user.showemail + FROM " . TABLE_PREFIX . "bug AS bug + LEFT JOIN " . TABLE_PREFIX . "user AS user + ON (bug.userid = user.userid) + WHERE bug.bugid = $vars[bugid]" +); + +if (!is_array($bug)) { - $_REQUEST['do'] = 'modify'; -} + echo 'alert: bad bug'; + exit; +} -// ################################################################### +$bug['userinfo'] = construct_user_display($bug); +$bug['product'] = $bugsys->datastore['product']["$bug[productid]"]['title']; +$bug['component'] = iff($bug['componentid'], $bugsys->datastore['product']["$bug[componentid]"]['title']); +$bug['version'] = $bugsys->datastore['version']["$bug[versionid]"]['version']; +$bug['status'] = $bugsys->datastore['status']["$bug[status]"]['status']; +$bug['resolution'] = $bugsys->datastore['resolution']["$bug[resolution]"]['resolution']; +$bug['severity'] = $bugsys->datastore['severity']["$bug[severity]"]['severity']; +$bug['priority'] = $bugsys->datastore['priority']["$bug[priority]"]['priority']; + +$assigninfo = $bugsys->datastore['assignto']["$bug[assignedto]"]; +$bug['assigninfo'] = iff(is_array($assigninfo), construct_user_display($assigninfo)); -if ($_REQUEST['do'] == 'modify') +if (((can_perform('caneditown') AND $bugsys->userinfo['userid'] == $comment['userid']) OR can_perform('caneditothers')) AND can_perform('caneditinfo')) { - sanitize(array('bugid' => INT)); - - $bug = $DB_sql->query_first(" - SELECT bug.*, user.displayname, user.email, user.showemail - FROM " . TABLE_PREFIX . "bug AS bug - LEFT JOIN " . TABLE_PREFIX . "user AS user - ON (bug.userid = user.userid) - WHERE bug.bugid = $vars[bugid]" - ); - - if (!is_array($bug)) - { - echo 'alert: bad bug'; - exit; - } + $show['editreport'] = true; +} +else +{ + $show['editreport'] = false; +} - echo "
Bug ID: $bug[bugid]
"; - echo "
Reported by: " . construct_user_display($bug) . "
"; - echo "
Product: " . $bugsys->datastore['product']["$bug[productid]"]['title'] . iff($bug['componentid'], ' / Component:' . $bugsys->datastore['product']["$bug[componentid]"]['title'] . '') . ' / Version: ' . $bugsys->datastore['version']["$bug[versionid]"]['version'] . "
"; - echo "
Title / summary: $bug[summary]
"; - echo "
Status: " . $bugsys->datastore['status']["$bug[status]"]['status'] . " / Resolution: " . $bugsys->datastore['resolution']["$bug[resolution]"]['resolution'] . "
"; - echo "
Severity: " . $bugsys->datastore['severity']["$bug[severity]"]['severity'] . "
"; - echo "
Priority: " . $bugsys->datastore['priority']["$bug[priority]"]['priority'] . "
"; - $assigninfo = $bugsys->datastore['assignto']["$bug[assignedto]"]; - echo iff(is_array($assigninfo), "
Assigned to: " . construct_user_display($assigninfo) . "
"); - - if (((can_perform('caneditown') AND $bugsys->userinfo['userid'] == $comment['userid']) OR can_perform('caneditothers')) AND can_perform('caneditinfo')) +$comments_fetch = $DB_sql->query(" + SELECT comment.*, user.email, user.showemail, user.displayname + FROM " . TABLE_PREFIX . "comment AS comment + LEFT JOIN " . TABLE_PREFIX . "user AS user + ON (comment.userid = user.userid) + WHERE comment.bugid = $vars[bugid] + ORDER BY comment.dateline ASC" +); +while ($comment = $DB_sql->fetch_array($comments_fetch)) +{ + $comment['posttime'] = datelike('standard', $comment['dateline']); + $comment['postby'] = construct_user_display($comment); + if ((can_perform('caneditown') AND $bugsys->userinfo['userid'] == $comment['userid']) OR can_perform('caneditothers')) { - echo ''; + $show['editcomment'] = true; } - - echo '
'; - - $comments = $DB_sql->query(" - SELECT comment.*, user.email, user.showemail, user.displayname - FROM " . TABLE_PREFIX . "comment AS comment - LEFT JOIN " . TABLE_PREFIX . "user AS user - ON (comment.userid = user.userid) - WHERE comment.bugid = $vars[bugid] - ORDER BY comment.dateline ASC" - ); - while ($comment = $DB_sql->fetch_array($comments)) + else { - echo '"; - echo ""; - if ((can_perform('caneditown') AND $bugsys->userinfo['userid'] == $comment['userid']) OR can_perform('caneditothers')) - { - echo ""; - } - echo "
' . datelike('standard', $comment['dateline']) . '' . construct_user_display($comment) . "
" . $comment['comment_parsed'] . "
[Edit Comment]
"; + $show['editcomment'] = false; } + eval('$comments .= "' . $tpl->fetch('showreport_comment') . '";'); +} - if (can_perform('canpostcomments')) - { - echo ""; - } - - /*print_r($bug); - print_r($comments);*/ +if (can_perform('canpostcomments')) +{ + $show['newreply'] = true; +} +else +{ + $show['newreply'] = false; } +eval('$tpl->flush("' . $tpl->fetch('SHOWREPORT') . '");'); + /*=====================================================================*\ || ################################################################### || # $HeadURL$ diff --git a/templates/default/SHOWREPORT.tpl b/templates/default/SHOWREPORT.tpl new file mode 100644 index 0000000..aab07bb --- /dev/null +++ b/templates/default/SHOWREPORT.tpl @@ -0,0 +1,16 @@ +
Bug ID: $bug[bugid]
+
Reported by: $bug[userinfo]
+
Product: $bug[product] / Component: $bug[component] / Version: $bug[version]
+
Title / summary: $bug[summary]
+
Status: $bug[status] / Resolution: $bug[resolution]
+
Severity: $bug[severity]
+
Priority: $bug[priority]
+
Assigned to: $bug[assigninfo]
+ + + +
+ +$comments + + \ No newline at end of file diff --git a/templates/default/TRACKERHOME.tpl b/templates/default/TRACKERHOME.tpl new file mode 100644 index 0000000..a389484 --- /dev/null +++ b/templates/default/TRACKERHOME.tpl @@ -0,0 +1,13 @@ + + + + + + + + + +$bugs +
Bug IDTitleReporterProduct/VersionStatus/ResolutionLast Post
+ +[New Report] \ No newline at end of file diff --git a/templates/default/doctype.tpl b/templates/default/doctype.tpl new file mode 100644 index 0000000..c642479 --- /dev/null +++ b/templates/default/doctype.tpl @@ -0,0 +1,2 @@ + \ No newline at end of file diff --git a/templates/default/editcomment.tpl b/templates/default/editcomment.tpl new file mode 100644 index 0000000..c29e4f7 --- /dev/null +++ b/templates/default/editcomment.tpl @@ -0,0 +1,10 @@ +
Bug: $bug[summary]
+
Comment posted on: $comment[posttime]
+
Comment posted by: $comment[postby]
+ +
+ + +
Comment:
+
+
diff --git a/templates/default/editreport.tpl b/templates/default/editreport.tpl new file mode 100644 index 0000000..ebc74f0 --- /dev/null +++ b/templates/default/editreport.tpl @@ -0,0 +1,20 @@ +
+ + + +
Bug ID: $bug[bugid]
+
Summary/Title:
+
Severity:
+ + +
Priority:
+
Status:
+
Resolution:
+
+ + +
Assigned to:
+
+ +
+ \ No newline at end of file diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl new file mode 100644 index 0000000..e69de29 diff --git a/templates/default/header.tpl b/templates/default/header.tpl new file mode 100644 index 0000000..e69de29 diff --git a/templates/default/headinclude.tpl b/templates/default/headinclude.tpl new file mode 100644 index 0000000..e69de29 diff --git a/templates/default/login.tpl b/templates/default/login.tpl new file mode 100644 index 0000000..680b0a2 --- /dev/null +++ b/templates/default/login.tpl @@ -0,0 +1,8 @@ +
+ + +Email:
+Password:
+Remember Me: Yes
+ +
\ No newline at end of file diff --git a/templates/default/newcomment.tpl b/templates/default/newcomment.tpl new file mode 100644 index 0000000..8df971c --- /dev/null +++ b/templates/default/newcomment.tpl @@ -0,0 +1,21 @@ +
New comment for: $bug[summary]
+ +
+ + +
Comment:
+ +
+ + +
+
+ + + + + + + + +
Summary Report:$bug[summary]
$bug[comment]
\ No newline at end of file diff --git a/templates/default/newreport.tpl b/templates/default/newreport.tpl new file mode 100644 index 0000000..afa38cd --- /dev/null +++ b/templates/default/newreport.tpl @@ -0,0 +1,23 @@ +
+ + + + + +
Summary/Title:
+
Severity:
+ + +
Priority:
+
Status:
+
Resolution:
+
+ + +
Assigned to:
+
+ +
Detailed description:
+ + +
\ No newline at end of file diff --git a/templates/default/productselect.tpl b/templates/default/productselect.tpl new file mode 100644 index 0000000..204ad9d --- /dev/null +++ b/templates/default/productselect.tpl @@ -0,0 +1,12 @@ +
$select[method]get"> + +$select[display]: + + + + + + + + + \ No newline at end of file diff --git a/templates/default/register.tpl b/templates/default/register.tpl new file mode 100644 index 0000000..0107679 --- /dev/null +++ b/templates/default/register.tpl @@ -0,0 +1,11 @@ +
+ +Email:
+Confirm Email:
+Display Name:
+Password:
+Confirm Password:
+Show My Email Publicly: Yes
+Language:
+ +
\ No newline at end of file diff --git a/templates/default/selectoptgroup.tpl b/templates/default/selectoptgroup.tpl new file mode 100644 index 0000000..ca21403 --- /dev/null +++ b/templates/default/selectoptgroup.tpl @@ -0,0 +1,3 @@ + +$optbits + \ No newline at end of file diff --git a/templates/default/selectoption.tpl b/templates/default/selectoption.tpl new file mode 100644 index 0000000..5ee431c --- /dev/null +++ b/templates/default/selectoption.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/default/showreport_comment.tpl b/templates/default/showreport_comment.tpl new file mode 100644 index 0000000..feb811b --- /dev/null +++ b/templates/default/showreport_comment.tpl @@ -0,0 +1,18 @@ + + + + + + + + + + + + +
+ $comment[posttime] + $comment[postby] +
$comment[comment_parsed]
[Edit Comment]
+ +
\ No newline at end of file diff --git a/templates/default/trackerhome_bits.tpl b/templates/default/trackerhome_bits.tpl new file mode 100644 index 0000000..7e121cc --- /dev/null +++ b/templates/default/trackerhome_bits.tpl @@ -0,0 +1,8 @@ + + $bug[bugid] + $bug[summary] + $bug[firstreport] + $bug[product] / $bug[version] + $bug[status]/$bug[resolution] + $bug[lastpostinfo] + \ No newline at end of file diff --git a/templates/default/tsinfo.php b/templates/default/tsinfo.php new file mode 100644 index 0000000..8b0f6c1 --- /dev/null +++ b/templates/default/tsinfo.php @@ -0,0 +1,24 @@ + 'Default Style Set', + 'shortname' => 'default' +); + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file -- 2.43.5