public function printOne($sitePhone)
 {
     $siteName = site::GET($sitePhone->siteID)->name;
     $phoneName = phone::GET($sitePhone->phoneID)->name;
     echo "<table>";
     echo "<tr><td><b>\tСайт\t</b></td><td><a   href=\"/site/view/{$siteEmail->siteID}\">\t{$siteName}\t</a></td></tr>";
     echo "<tr><td><b>\tТелефон\t</b></td><td><a href=\"/phone/view/{$siteEmail->emailID}\">\t{$phoneName}\t</a></td></tr>";
     echo "</table>";
 }
示例#2
0
<!-- <a href="/phone">INDEX</a><br><br> -->
<?php 
global $menuHover;
$menuHover->Add("Все", "/phone");
$menuHover->Add("Новый", "/phone/new");
$menuHover->Add("Изменить", "/phone/edit/" . $args['id']);
$menuHover->Add("Удалить", "/phone/delete/" . $args['id'], "return confirm('Are you sure?');");
?>

<?php 
phone::printOne(phone::GET($args['id']));
?>
<br><br>
<a href="/phone/edit/<?php 
echo $args['id'];
?>
">EDIT</a><br>
<br><br><h3>sites of phone</h3>
<?php 
site::printArray(site::GETSQL("\r\n\t\tSELECT site.*\r\n\t\tFROM site, sitePhone, phone\r\n\t\tWHERE\r\n\t\t\tsite.id\t\t\t\t=\tsitePhone.siteID AND\r\n\t\t\tphone.id\t\t\t=\tsitePhone.phoneID AND\r\n\t\t\tsitePhone.deleted\t=\t'False' AND\r\n\t\t\tsitePhone.phoneID\t=\t" . $args['id']));
示例#3
0
<!-- <a href="/phone">INDEX</a><br><br> -->
<?php 
global $menuHover;
$menuHover->Add("Все", "/phone");
$menuHover->Add("Новый", "/phone/new");
$menuHover->Add("Просмотр", "/phone/view/" . $args['id']);
$menuHover->Add("Удалить", "/phone/delete/" . $args['id'], "return confirm('Are you sure?');");
?>

<form method="post">
	name:<input name="name" type="text" value="<?php 
echo phone::GET($args['id'])->name;
?>
">
	<input type="submit">
</form>

<!-- <a href="/phone/view/<?php 
echo $args['id'];
?>
">VIEW</a><br> -->