mod.php
来自「GForge 3.0 协作开发平台 支持CVS, mailing lists, 」· PHP 代码 · 共 244 行
PHP
244 行
<?php/** * * SourceForge Generic Tracker facility * * SourceForge: Breaking Down the Barriers to Open Source Development * Copyright 1999-2001 (c) VA Linux Systems * http://sourceforge.net * * @version $Id: mod.php,v 1.16 2001/06/12 21:56:57 pfalcon Exp $ * */$ath->header(array ('title'=>$Language->getText('tracker_mod','title').': '.$ah->getID(). ' - ' . $ah->getSummary(),'pagename'=>'tracker','atid'=>$ath->getID(),'sectionvals'=>array($group->getPublicName()) ));?> <h2>[ #<?php echo $ah->getID(); ?> ] <?php echo $ah->getSummary(); ?></h2> <table width="100%"><?phpif (session_loggedin()) {?> <tr> <td><?php if ($ah->isMonitoring()) { $img="xmail16w.png"; $key="stop_monitoring"; } else { $img="mail16w.png"; $key="monitor"; } echo ' <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'. html_image('ic/'.$img.'','20','20',array()).' '.$Language->getText('tracker_utils',$key).'</strong></a>'; ?> <a href="javascript:help_window('/help/tracker.php?helpname=monitor')"><strong>(?)</strong></a> </td> <td> <a href="<?php echo "$PHP_SELF?func=taskmgr&group_id=$group_id&atid=$atid&aid=$aid"; ?>"><?php echo html_image('ic/taskman20w.png','20','20',array()); ?><strong><?php echo $Language->getText('tracker_mod','build_task_relation')?></strong></a> </td> </tr><?php } ?> <form action="<?php echo $PHP_SELF; ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" METHOD="POST" enctype="multipart/form-data"> <input type="hidden" name="func" value="postmod"> <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>"> <tr> <td><strong><?php echo $Language->getText('tracker','submitted_by') ?>:</strong><br /><?php echo $ah->getSubmittedRealName(); ?> (<tt><?php echo $ah->getSubmittedUnixName(); ?></tt>)</td> <td><strong><?php echo $Language->getText('tracker_mod','date_submitted') ?>:</strong><br /> <?php echo date($sys_datefmt, $ah->getOpenDate() ); $close_date = $ah->getCloseDate(); if ($ah->getStatusID()==2 && $close_date > 1) { echo '<br /><strong>'.$Language->getText('tracker_mod','date_closed').':</strong><br />' .date($sys_datefmt, $close_date); } ?> </td> </tr> <tr> <td><strong><?php echo $Language->getText('tracker_mod','data_type') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=data_type')"><strong>(?)</strong></a></strong><br /> <?php//// kinda messy - but works for now// need to get list of data types this person can admin// if ($ath->userIsAdmin()) { $alevel=' >= 0'; } else { $alevel=' > 1'; } $sql="SELECT agl.group_artifact_id,agl.name FROM artifact_group_list agl,artifact_perm ap WHERE agl.group_artifact_id=ap.group_artifact_id AND ap.user_id='". user_getid() ."' AND ap.perm_level $alevel AND agl.group_id='$group_id'"; $res=db_query($sql); echo html_build_select_box ($res,'new_artfact_type_id',$ath->getID(),false); ?> </td> <td> <input type="submit" name="submit" value="<?php echo $Language->getText('general','submit') ?>" /> </td> </tr> <tr> <td><strong><?php echo $Language->getText('tracker','category') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=category')"><strong>(?)</strong></a></strong><br /> <?php echo $ath->categoryBox('category_id', $ah->getCategoryID() ); echo ' <a href="/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_cat=1">('.$Language->getText('tracker','admin').')</a>'; ?> </td> <td><strong><?php echo $Language->getText('tracker','group') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=group')"><strong>(?)</strong></a></strong><br /> <?php echo $ath->artifactGroupBox('artifact_group_id', $ah->getArtifactGroupID() ); echo ' <a href="/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_group=1">('.$Language->getText('tracker','admin').')</a>'; ?> </td> </tr> <tr> <td><strong><?php echo $Language->getText('tracker','assigned_to')?>: <a href="javascript:help_window('/help/tracker.php?helpname=assignee')"><strong>(?)</strong></a></strong><br /> <?php echo $ath->technicianBox('assigned_to', $ah->getAssignedTo() ); echo ' <a href="/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1">('.$Language->getText('tracker','admin').')</a>'; ?> </td><td> <strong><?php echo $Language->getText('tracker','priority') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=priority')"><strong>(?)</strong></a></strong><br /> <?php /* Priority of this request */ build_priority_select_box('priority',$ah->getPriority()); ?> </td> </tr> <tr> <td> <strong><?php echo $Language->getText('tracker','status') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=status')"><strong>(?)</strong></a></strong><br /> <?php echo $ath->statusBox ('status_id', $ah->getStatusID() ); ?> </td> <td> <?php if ($ath->useResolution()) { echo ' <strong>'.$Language->getText('tracker','resolution').': <a href="javascript:help_window(\'/help/tracker.php?helpname=resolution\')"><strong>(?)</strong></a></strong><br />'; echo $ath->resolutionBox('resolution_id',$ah->getResolutionID()); } else { echo ' <input type="hidden" name="resolution_id" value="100">'; } ?> </td> </tr> <tr> <td colspan="2"><strong><?php echo $Language->getText('tracker','summary')?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br /> <input type="text" name="summary" size="80" value="<?php echo $ah->getSummary(); ?>" maxlength="255" /> </td> </tr> <tr><td colspan="2"> <?php echo nl2br($ah->getDetails()); ?> </td></tr> <tr><td colspan="2"> <strong><?php echo $Language->getText('tracker_mod','canned_response') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=canned_response')"><strong>(?)</strong></a></strong><br /> <?php echo $ath->cannedResponseBox('canned_response'); echo ' <a href="/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1">('.$Language->getText('tracker','admin').')</a>'; ?> <p> <strong><?php echo $Language->getText('tracker_mod','attach_comment') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=comment')"><strong>(?)</strong></a></strong><br /> <textarea name="details" rows="7" cols="60" wrap="hard"></textarea></p> <p> </p> <h3><?php echo $Language->getText('tracker','followups') ?>:</h3> <p> </p> <?php echo $ah->showMessages(); ?> </td></tr> <tr><td colspan="2"> <strong><?php echo $Language->getText('tracker','check_upload') ?>:</strong> <input type="checkbox" name="add_file" value="1" /> <a href="javascript:help_window('/help/tracker.php?helpname=attach_file')"><strong>(?)</strong></a><br /> <p> <input type="file" name="input_file" size="30" /></p> <p> <strong><?php echo $Language->getText('tracker','file_description') ?>:</strong><br /> <input type="text" name="file_description" size="40" maxlength="255" /></p> <h4><?php echo $Language->getText('tracker_mod','existing_files') ?>:</h4> <?php // // print a list of files attached to this Artifact // $file_list =& $ah->getFiles(); $count=count($file_list); $title_arr=array(); $title_arr[]=$Language->getText('tracker_mod','delete'); $title_arr[]=$Language->getText('tracker_mod','name'); $title_arr[]=$Language->getText('tracker_mod','description'); $title_arr[]=$Language->getText('tracker_mod','download'); echo $GLOBALS['HTML']->listTableTop ($title_arr); if ($count > 0) { for ($i=0; $i<$count; $i++) { echo ' <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td><input type="CHECKBOX" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'.$Language->getText('tracker_mod','delete').' </td>'. '<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td> <td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td> <td><a href="/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName() .'">'.$Language->getText('tracker_mod','download').'</a></td> </tr>'; } } else { echo '<tr><td colspan=3>'.$Language->getText('tracker_mod','no_files').'</td></tr>'; } echo $GLOBALS['HTML']->listTableBottom(); ?> </td><tr> <tr><td colspan="2"> <H4><?php echo $Language->getText('tracker_mod','changelog') ?>:</H4> <?php echo $ah->showHistory(); ?> </td></tr> <tr><td colspan="2" align="MIDDLE"> <input type="SUBMIT" name="SUBMIT" value="<?php echo $Language->getText('general','submit') ?>"> </form> </td></tr> </table><?php$ath->footer(array());?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?