Location: PHPKode > scripts > Bugerator > bugerator/bugerator_issue_admin_edit_tpl.php
<!-- bugerator_issue_admin_edit.php -->
<div class="issue_links" style="text-align: center; float: left; width: 33%;">
    <a id="admin_edit_link" href="#" onClick="document.getElementById('admin_edit_span').style.display = 'inline';
    document.getElementById('admin_edit_link').style.display = 'none';
    document.getElementById('edit_link').style.display = 'none';
    document.getElementById('developer_span').style.display = 'none';
    return false;">Admin Edit</a></div>
<span id="admin_edit_span" style="display: none; text-align: center;" >
    <form name="admin_edit_issue" method="post" action="">
	<input type="hidden" name="bugerator_admin_issue_edit" value="yes">
	<input type="hidden" name="issue_id" value="<?PHP echo $result->id;?>" >
	<input type="hidden" name="bugerator_admin" value="<?PHP echo $admin_nonce ?>" >
	<table class="bugerator bugerator_issue_edit"  >
	    <tr class="bugerator bugerator_issue_edit" >
		<td class="bugerator bugerator_issue_edit form_left" >
		    Status:
		</td>
		<td class="bugerator bugerator_issue_edit form_right" >
		<select name="status" >
		<?PHP for($x=0;$x<count($statuses);$x++): ?>
		    <option value=<?PHP if ($x == $result->status) 
			echo "$x selected >".$statuses[$x]; 
		    else    
			echo "$x >".$statuses[$x]."\r\n"; 
		endfor; ?>
		</select>
		</td>
		<td class="bugerator bugerator_issue_edit form_left" >
		    Priority:
		</td>
		<td class="bugerator bugerator_issue_edit form_right" >
		    <select name="priority">
			<?PHP
			for ($x=1;$x<6;$x++) {
			    echo "<option value=$x ";
			    if ($x == $result->priority) 
				echo " selected ";
			    echo " >$x \r\n";
			}
			?>
		    </select>
		</td>
		<td class="bugerator bugerator_issue_edit" >
		    Assign:
		</td>
		<td class="bugerator bugerator_issue_edit" >
		    <select name="assign" >
			<option value="0">
			<?PHP
			foreach($developers as $developer) {
			    echo "<option value=".$developer['id'];
			    if ($developer['id'] == $result->assigned)
				echo " selected ";
			    echo " >".$developer['name']."\r\n";
			}
			?>
		    </select>
		</td>
	    </tr>
	    <tr class="bugerator bugerator_issue_edit" >
		<td class="bugerator bugerator_issue_edit form_left" >
		    Version:
		</td>
		<td class="bugerator bugerator_issue_edit form_right" >
		    <select name="version" >
			<?PHP
			for ($x=0;$x<count($versions);$x++) {
			    echo "<option value=".$x;
				if ($result->version == $x) 
				    echo " selected ";
			    echo ">".$versions[$x]."\r\n";;
			}
			?>
		    </select>
		</td>
                <td class="bugerator bugerator_issue_edit form_left" >
		    Type:
		</td>
		<td class="bugerator bugerator_issue_edit form_right" >
                    <select name="type" >
                        <?PHP for($x=0;$x<count($types);$x++):
                            echo "<option value='$x' ";
                            if ($result->type == $x)
                                echo " selected ";
                            echo ">".$types[$x]."\r\n";
                        endfor; ?>
                    </select>
                </td>
		<td class="bugerator bugerator_issue_edit form_right" colspan="2">
                    Hide Project:
                    <input type="checkbox" value="yes" name="hide_issue" />
                </td>
            </tr>
	    <tr class="bugerator bugerator_issue_edit" >
                <td class="bugerator bugerator_issue_edit form_left" >
		    Title:
		</td>
		<td class="bugerator bugerator_issue_edit form_right" colspan="5">
                    <input name="title" size="60" value="<?PHP echo htmlspecialchars(stripslashes($result->title)); ?>"/>                   
                </td>
            </tr>
	    <tr class="bugerator bugerator_issue_edit" >
                <td class="bugerator bugerator_issue_edit form_left" >
		    Filename:
		</td>
                <?PHP if ($file_attached <> ""): ?>
		<td class="bugerator bugerator_issue_edit form_right" colspan="3" >
                     <?PHP echo $file_attached; ?>
                </td>
		<td class="bugerator bugerator_issue_edit form_right" colspan="2" >
                    Check to delete file. <input type="checkbox" name="delete_file" value="yes"/>
                </td>
                    <?PHP else: ?>
		<td class="bugerator bugerator_issue_edit form_right" colspan="5" >
                    &nbsp;
                </td>
                    <?PHP endif; ?>
            </tr>
	    <tr class="bugerator bugerator_issue_edit" >
                <td class="bugerator bugerator_issue_edit form_left" >
		    Description:
		</td>
		<td class="bugerator bugerator_issue_edit form_right" colspan="5" >
                    <textarea name="description" cols="60" rows="4" ><?PHP echo stripslashes($result->description); ?></textarea>
                </td>
            </tr>
 	    <tr class="bugerator bugerator_issue_edit" >
		<td class="bugerator bugerator_issue_edit" colspan="8" >
		    <input type="submit" value="Submit" class="button-primary" >
		</td>
	    </tr>           

	</table>
    </form>
</span>
Return current item: Bugerator