Пример #1
0
				  		<th>Description</th>
						<th>Edit</th>
                        <th>Details</th>
				  	</tr>	
				  </thead>
				  <tbody>
				  	<?php 
$account_username = $_SESSION['ACCOUNT_USERNAME'];
//$account_password = $_SESSION['ACCOUNT_PASSWORD'];
$account_type = $_SESSION['ACCOUNT_TYPE'];
//echo 'username =   '******'account type =   '. $account_type;
//echo 'password =   '******'<tr>';
        echo '<td width="5%" align="center"></td>';
        echo '<td width="15%"><input type="checkbox" name="selector[]" id="selector[]" value="' . $list->domain_id . '"/>';
        echo '<td width="25%" >' . $list->name . '</td>';
        echo '<td width="25%" >' . $list->description . '</td>';
        echo '<td width="15%" ><a href = "index.php?view=edit&id=' . $list->domain_id . '" ><span class="glyphicon glyphicon-list-alt"> </span>  Edit</a></td>';
        echo '<td><a href = "index.php?view=view&domainId=' . $list->domain_id . '" ><span class="glyphicon glyphicon-list-alt"> </span>  View</a></td>';
        echo '</tr>';
    }
    //}
} else {
    echo "wrong info";
}
?>
Пример #2
0
?>
admin/modules/subject/index.php" class="btn btn-info btn-xsm">
								<span class="glyphicon glyphicon-step-backward"></span>Back
								</a
								</p>
							</div>
							<div class="col-xs-6">
								<p align="right"><a href="<?php 
echo WEB_ROOT;
?>
admin/logout.php"
								class="btn btn-info btn-xsm"><span class="glyphicon glyphicon-log-out"></span>Log out</a></p>
							</div>
						</div>
					</div>
				</div>
		</div>
		<?php 
$subject = new Subject();
$cur = $subject->single_subject($_GET['id']);
?>
		<form class="form-horizontal well span9" action="controller.php?action=edit&id=<?php 
echo $cur->subject_id;
?>
" method="POST">
			
			<fieldset>
				<legend>Edit subject</legend>
				
				
				<div class="form-group" id="subject_id">