Example #1
1
<!DOCTYPE html>
<html>
	<head>
		<title>Maaatch&nbsp;&nbsp;|&nbsp;&nbsp;Register</title>
		<?php 
require '/var/www/maaatch.com/htdocs/common/common.php';
?>
		<?php 
head_tags();
?>
		<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
		<script src="rvalidate.js"></script>
	</head>
	<body>
		<?php 
navbar("Sign Up", 0);
?>
		<main class="container">
			<form class="form-signin" action="register.php" method="post">

				<h2 class="form-signin-heading">Register an account</h2>
				
				<label for="inputUser" class="sr-only">Username</label>
				<input name="username" type="text" id="inputUser" class="form-control" placeholder="Username" required autofocus>
				
				<label for="inputFirstName" class="sr-only">First Name</label>
				<input name="firstname" type="text" id="inputFirstName" class="form-control" placeholder="First Name" required>
				
				<label for="inputLastName" class="sr-only">Last Name</label>
				<input name="lastname" type="text" id="inputLastName" class="form-control" placeholder="Last Name" required>
Example #2
0
function display_phpc()
{
    global $phpc_messages, $phpc_redirect, $phpc_script, $phpc_prefix, $phpc_title, $phpcdb, $phpc_cal, $phpc_home_url;
    $navbar = false;
    try {
        $calendars = $phpcdb->get_calendars();
        $list = array();
        if (isset($phpc_cal)) {
            $phpc_title = $phpc_cal->get_title();
            $title_link = tag('a', attrs("href='{$phpc_home_url}?phpcid={$phpc_cal->get_cid()}'", 'class="phpc-dropdown-list-title"'), $phpc_title);
        } else {
            $phpc_title = __("(No calendars)");
            $title_link = $phpc_title;
        }
        foreach ($calendars as $calendar) {
            $list["{$phpc_home_url}?phpcid={$calendar->get_cid()}"] = $calendar->get_title();
        }
        if (sizeof($calendars) > 1) {
            $title_tag = create_dropdown_list($title_link, $list);
        } else {
            $title_tag = $title_link;
        }
        $content = do_action();
        if (sizeof($phpc_messages) > 0) {
            $messages = tag('div');
            foreach ($phpc_messages as $message) {
                $messages->add($message);
            }
            // If we're redirecting, the messages might not get
            //   seen, so don't clear them
            if (empty($phpc_redirect)) {
                $_SESSION["{$phpc_prefix}messages"] = NULL;
            }
        } else {
            $messages = '';
        }
        return tag('div', attrs('class="php-calendar ui-widget"'), userMenu(), tag('br', attrs('style="clear:both;"')), tag('div', attrs('class="phpc-title ui-widget-header"'), $title_tag), navbar(), $messages, $content, footer());
    } catch (PermissionException $e) {
        $msg = __('You do not have permission to do that: ') . $e->getMessage();
        if (is_user()) {
            return error_message_redirect($msg, $phpc_script);
        } else {
            return error_message_redirect($msg, "{$phpc_script}?action=login");
        }
    } catch (InvalidInputException $e) {
        return error_message_redirect($e->getMessage(), $e->target);
    } catch (Exception $e) {
        return display_exception($e, $navbar);
    }
}
Example #3
0
function view_config($sid)
{
    global $dbconn;
    navbar($sid);
    echo "<CENTER><TEXTAREA rows=15 cols=80 ># " . _("This file was automagically created") . "\n\n";
    if ($_SESSION["scanner"] == "nessus") {
        $query = "SELECT t1.id, t1.enabled FROM vuln_nessus_settings_plugins as t1\n          LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n          WHERE t2.name ='scanner' and t1.sid={$sid} order by id";
    } else {
        $query = "SELECT t3.oid, t1.enabled FROM vuln_nessus_settings_plugins as t1\n                LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n                LEFT JOIN vuln_nessus_plugins t3 on t1.id=t3.id\n                WHERE t2.name ='scanner' and t1.sid={$sid} order by oid";
    }
    $result = $dbconn->execute($query);
    echo "begin(SCANNER_SET)\n";
    while (list($id, $enabled) = $result->fields) {
        $enabled1 = "yes";
        if ($enabled == "N") {
            $enabled1 = "no";
        }
        echo " {$id} = {$enabled1}\n";
        $result->MoveNext();
    }
    echo "end(SCANNER_SET)\n\n";
    $query = "Select nessus_id, value from vuln_nessus_settings_preferences \n      WHERE category='SERVER_PREFS' and sid={$sid}";
    $result = $dbconn->execute($query);
    echo "begin(SERVER_PREFS)\n";
    while (list($nessus_id, $value) = $result->fields) {
        echo " {$nessus_id} = {$value}\n";
        $result->MoveNext();
    }
    echo "end(SERVER_PREFS)\n\n";
    $query = "Select nessus_id, value from vuln_nessus_settings_preferences\n      WHERE category='PLUGINS_PREFS' and sid={$sid}";
    $result = $dbconn->execute($query);
    echo "begin(PLUGINS_PREFS)\n";
    while (list($nessus_id, $value) = $result->fields) {
        echo " {$nessus_id} = {$value}\n";
        $result->MoveNext();
    }
    echo "end(PLUGINS_PREFS)\n\n";
    if ($_SESSION["scanner"] == "nessus") {
        $query = "SELECT t1.id, t1.enabled FROM vuln_nessus_settings_plugins as t1\n      LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n      WHERE t2.name <>'scanner' and t1.sid={$sid} order by id";
    } else {
        $query = "SELECT t3.oid, t1.enabled FROM vuln_nessus_settings_plugins as t1\n      LEFT JOIN vuln_nessus_category t2 on t1.category=t2.id\n      LEFT JOIN vuln_nessus_plugins t3 on t1.id=t3.id\n      WHERE t2.name <>'scanner' and t1.sid={$sid} order by oid";
    }
    $result = $dbconn->execute($query);
    echo "begin(PLUGIN_SET)\n";
    while (list($id, $enabled) = $result->fields) {
        $enabled1 = "yes";
        if ($enabled == "N") {
            $enabled1 = "no";
        }
        echo " {$id} = {$enabled1}\n";
        $result->MoveNext();
    }
    echo "end(PLUGIN_SET)\n\n";
    echo "</TEXTAREA></CENTER>";
}
Example #4
0
$row_days = array_unique($row_days);
$column_periods = array_unique($column_periods);
sort($row_days);
sort($column_periods);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php 
head();
?>
</head>
  <body>
	
	<?php 
navbar(1);
?>
	
    <div class="container" role="main">
    	<div class="page-header">
    		<h1><span class="fa fa-table"></span>&nbsp;Your Timetable</h1>
    	</div>
    	<ul class="list-inline">
    	<li>View:</li>
    	<li><a class="btn <?php 
if ($viewing_by_day) {
    echo 'btn-default';
} else {
    echo 'btn-info';
}
?>
Example #5
0
include DIR_LIB . 'helpers/ui.php';
include DIR_LIB . 'helpers/timetable.php';
Authentication::require_login();
$week_block = 0;
?>

<!DOCTYPE html>
<html lang="en">
<?php 
head();
?>

  <body>
	
	<?php 
navbar();
?>
	
    <div class="container" role="main">
	    
    <h1 align="center" class="home-greeting-text"> <?php 
echo date('l jS M Y');
?>
</h1>
    
    <p class="lead">You have <?php 
echo TaskList::getAllOutstandingCount(Authentication::get_user());
?>
 tasks outstanding.</p>
    
    <h2>Your Timetable</h2>
Example #6
0
      <?php 
include "htmlPieces/header_links.php";
?>
      <link rel="stylesheet" type="text/css" href="css/style_gallery.css">
        <script src="js/gallery.js"></script>
      <title>الصور</title>
  </head>
  <body>
      <div class="container">
    <!--*************  header ***************--> 
        <?php 
include "htmlPieces/header.php";
?>

            <?php 
navbar(7);
?>

                <div id="gallery">
                  <div class="row">
                      <div  id="pictureframe"></div>
                  </div>
                  <div class="row">
                     <div  id="thumbnailbox"></div>
                  </div>
                </div>
                <script>ajax_json_gallery();</script>

    

      <!-- ********* footer **************** -->
                        </table>
                        </form>
                        </center>
                        <!-- END add new entry -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
             <?php 
navbar("coordination_of_services.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #8
0
  
  .tasks-actionbtn
  {
	  cursor:hand;
	  cursor:pointer;
  }
  
  </style>
  
  </head>


  <body>
	
	<?php 
navbar(2);
?>
	
    <div class="container" role="main">
        <div class="page-header">
        <h1><span class="glyphicon glyphicon-ok"></span>&nbsp;Tasks <small><?php 
$conditions = array('user_id' => Authentication::get_user());
$viewing_single = false;
if (isset($_GET['list'])) {
    if (ctype_digit($_GET['list'])) {
        $conditions['id'] = $_GET['list'];
        $viewing_single = true;
        echo 'single view';
    }
} else {
    echo TaskList::getAllOutstandingCount(Authentication::get_user()) . ' outstanding';
Example #9
0
    //while (list($k,$v) = each($headers)) {
    //  echo "<!-- ", htmlspecialchars($k),": ",preg_replace("/-+/", "-", htmlspecialchars($v))," -->\n";
    //}
    echo "   </table>\n";
    echo "  </blockquote>\n";
    echo "  <blockquote>\n";
    echo "   <pre>\n";
}
// Does not check existence of next, so consider this the super duper fast [broken] version
// Based off navbar() in group.php
function navbar($group, $current)
{
    $group = htmlspecialchars($group, ENT_QUOTES, "UTF-8");
    echo '  <table border="0" cellpadding="2" cellspacing="2" width="100%">' . "\n";
    echo '   <tr>' . "\n";
    echo '    <th class="nav">';
    if ($current > 1) {
        echo '     <a href="/', $group, '/', $current - 1, '"><b>&laquo; previous</b></a>';
    } else {
        echo '&nbsp;';
    }
    echo '    </th>' . "\n";
    echo '    <th align="center">' . "{$group} (#{$current})</th>\n";
    echo '    <th align="right" class="nav">';
    echo '     <a href="/', $group, '/', $current + 1, '"><b>next &raquo;</b></a>';
    echo '    </th>' . "\n";
    echo '   </tr>' . "\n";
    echo '  </table>' . "\n";
}
navbar($group, $article);
foot();
Example #10
0
function DisplayTopic($pollID, $pid = 0, $tid = 0, $mode = "thread", $order = 0, $thold = 0, $level = 0, $nokids = 0)
{
    global $hr, $user, $datetime, $cookie, $userinfo, $admin, $commentlimit, $anonymous, $reasons, $anonpost, $foot1, $foot2, $foot3, $foot4, $prefix, $module_name, $db, $admin_file, $user_prefix;
    if (defined('NUKE_FILE')) {
        global $title, $bgcolor1, $bgcolor2, $bgcolor3;
    } else {
        global $title, $bgcolor1, $bgcolor2, $bgcolor3;
        include "mainfile.php";
        include "header.php";
    }
    if ($pid != 0) {
        include "header.php";
    }
    $count_times = 0;
    cookiedecode($user);
    getusrinfo($user);
    $pollID = intval($pollID);
    $pid = intval($pid);
    if (!isset($mode) or empty($mode)) {
        if (isset($userinfo['umode'])) {
            $mode = $userinfo['umode'];
        } else {
            $mode = "thread";
        }
    }
    if (!isset($order) or empty($order)) {
        if (isset($userinfo['uorder'])) {
            $order = $userinfo['uorder'];
        } else {
            $order = 0;
        }
    }
    if (!isset($thold) or empty($thold)) {
        if (isset($userinfo['thold'])) {
            $thold = $userinfo['thold'];
        } else {
            $thold = 0;
        }
    }
    $tid = intval($tid);
    $q = "select tid, pid, pollID, date, name, email, host_name, subject, comment, score, reason from " . $prefix . "_pollcomments where pollID='{$pollID}' and pid='{$pid}'";
    if (!empty($thold)) {
        $q .= " and score>='{$thold}'";
    } else {
        $q .= " and score>='0'";
    }
    if ($order == 1) {
        $q .= " order by date desc";
    }
    if ($order == 2) {
        $q .= " order by score desc";
    }
    $something = $db->sql_query($q);
    $num_tid = $db->sql_numrows($something);
    navbar($pollID, $title, $thold, $mode, $order);
    modone();
    while ($count_times < $num_tid) {
        echo "<br>";
        OpenTable();
        $row_q = $db->sql_fetchrow($something);
        $tid = intval($row_q['tid']);
        $pid = intval($row_q['pid']);
        $pollID = intval($row_q['pollID']);
        $date = $row_q['date'];
        $c_name = filter($row_q['name'], "nohtml");
        $email = filter($row_q['email'], "nohtml");
        $host_name = filter($row_q['host_name'], "nohtml");
        $subject = filter($row_q['subject'], "nohtml");
        $comment = filter($row_q['comment']);
        $score = intval($row_q['score']);
        $reason = intval($row_q['reason']);
        $karma = $db->sql_fetchrow($db->sql_query("SELECT karma FROM " . $user_prefix . "_users WHERE username='******'"));
        $karma = intval($karma['karma']);
        if (is_admin($admin)) {
            if ($karma == 1) {
                $karma = "<img src=\"images/karma/1.gif\" border=\"0\" alt=\"" . _KARMALOW . "\" title=\"" . _KARMALOW . "\">&nbsp;";
            } elseif ($karma == 2) {
                $karma = "<img src=\"images/karma/2.gif\" border=\"0\" alt=\"" . _KARMABAD . "\" title=\"" . _KARMABAD . "\">&nbsp;";
            } elseif ($karma == 3) {
                $karma = "<img src=\"images/karma/3.gif\" border=\"0\" alt=\"" . _KARMADEVIL . "\" title=\"" . _KARMADEVIL . "\">&nbsp;";
            } else {
                $karma = "";
            }
        } else {
            $karma = "";
        }
        if (empty($c_name)) {
            $c_name = $anonymous;
        }
        if (empty($subject)) {
            $subject = "[" . _NOSUBJECT . "]";
        }
        echo "<a name=\"{$tid}\">";
        echo "<table width=99% border=0><tr bgcolor=\"{$bgcolor1}\"><td width=500>";
        formatTimestamp($date);
        if ($email) {
            echo "<p><b>{$subject}</b> <font class=content>";
            if ($userinfo['noscore'] == 0) {
                echo "(" . _SCORE . " {$score}";
                if ($reason > 0) {
                    echo ", {$reasons[$reason]}";
                }
                echo ")";
            }
            echo "<br>" . _BY . " <a href=\"mailto:{$email}\">{$c_name}</a> <b>({$email})</b> " . _ON . " {$datetime}";
        } else {
            echo "<p><b>{$subject}</b> <font class=content>";
            if ($userinfo['noscore'] == 0) {
                echo "(" . _SCORE . " {$score}";
                if ($reason > 0) {
                    echo ", {$reasons[$reason]}";
                }
                echo ")";
            }
            echo "<br>" . _BY . " {$c_name} " . _ON . " {$datetime}";
        }
        // If you are admin you can see the Poster IP address (you have this right, no?)
        // with this you can see who is flaming you... ha-ha-ha
        $journal = "";
        if (is_active("Journal")) {
            $row = $db->sql_fetchrow($db->sql_query("SELECT jid from " . $prefix . "_journal where aid='{$c_name}' AND status='yes' order by pdate,jid DESC limit 0,1"));
            $jid = intval($row['jid']);
            if (!empty($jid) and isset($jid)) {
                $journal = " | <a href=\"modules.php?name=Journal&amp;file=display&amp;jid={$jid}\">" . _JOURNAL . "</a>";
            } else {
                $journal = "";
            }
        }
        if ($c_name != $anonymous) {
            $row2 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM " . $user_prefix . "_users WHERE username='******'"));
            $r_uid = intval($row2['user_id']);
            echo "<br>(<a href=\"modules.php?name=Your_Account&op=userinfo&username={$c_name}\">" . _USERINFO . "</a> ";
            if (is_active("Private_Messages")) {
                echo "| <a href=\"modules.php?name=Private_Messages&mode=post&u={$r_uid}\">" . _SENDAMSG . "</a>";
            }
            echo "{$journal}) ";
        }
        $row_url = $db->sql_fetchrow($db->sql_query("SELECT user_website FROM " . $prefix . "_users WHERE username='******'"));
        $url = filter($row_url['user_website'], "nohtml");
        if ($url != "http://" and !empty($url) and stripos_clone($url, "http://")) {
            echo "<a href=\"{$url}\" target=\"new\">{$url}</a> ";
        }
        if (is_admin($admin)) {
            $row3 = $db->sql_fetchrow($db->sql_query("SELECT host_name from " . $prefix . "_pollcomments where tid='{$tid}'"));
            $host_name = filter($row3['host_name'], "nohtml");
            echo "<br><b>(IP: {$host_name})</b> {$karma}";
        }
        echo "</font></td></tr><tr><td>";
        if (isset($userinfo['commentmax']) && strlen($comment) > $userinfo['commentmax']) {
            echo substr("{$comment}", 0, $userinfo['commentmax']) . "<br><br><b><a href=\"modules.php?name={$module_name}&file=comments&pollID={$r_pollID}&tid={$r_tid}&mode={$mode}&order={$order}&thold={$thold}\">" . _READREST . "</a></b>";
        } elseif (strlen($comment) > $commentlimit) {
            echo substr("{$comment}", 0, $commentlimit) . "<br><br><b><a href=\"modules.php?name={$module_name}&amp;file=comments&amp;pollID={$pollID}&tid={$tid}&mode={$mode}&order={$order}&thold={$thold}\">" . _READREST . "</a></b>";
        } else {
            echo $comment;
        }
        echo "</td></tr></table><br><p>";
        if ($anonpost == 1 or is_admin($admin) or is_user($user)) {
            echo "<font class=\"content\"> [ <a href=\"modules.php?name={$module_name}&amp;file=comments&amp;op=Reply&amp;pid={$tid}&amp;pollID={$pollID}&amp;mode={$mode}&amp;order={$order}&amp;thold={$thold}\">" . _REPLY . "</a>";
        }
        if ($pid != 0) {
            $row4 = $db->sql_fetchrow($db->sql_query("SELECT pid from " . $prefix . "_pollcomments where tid='{$pid}'"));
            $erin = intval($row4['pid']);
            echo "| <a href=\"modules.php?name={$module_name}&amp;file=comments&amp;pollID={$pollID}&amp;pid={$erin}&amp;mode={$mode}&amp;order={$order}&amp;thold={$thold}\">" . _PARENT . "</a>";
        }
        modtwo($tid, $score, $reason);
        if (is_admin($admin)) {
            echo " | <a href=\"" . $admin_file . ".php?op=RemovePollComment&amp;tid={$tid}&amp;pollID={$pollID}\">" . _DELETE . "</a> ]</font><p>";
        } elseif ($anonpost != 0 or is_admin($admin) or is_user($user)) {
            echo " ]</font><p>";
        }
        DisplayKids($tid, $mode, $order, $thold, $level);
        echo "</ul>";
        if ($hr) {
            echo "<hr noshade size=1>";
        }
        echo "</p>";
        $count_times += 1;
        CloseTable();
    }
    modthree($pollID, $mode, $order, $thold);
    if ($pid == 0) {
        return array($pollID, $pid, $subject);
    } else {
        include_once "footer.php";
    }
}
Example #11
0
?>

<!DOCTYPE html>
<html>
	<head>
		<title>Maaatch&nbsp;&nbsp;|&nbsp;&nbsp;About Maaatch</title>
		<?php 
require '/var/www/maaatch.com/htdocs/common/common.php';
?>
		<?php 
head_tags();
?>
	</head>
	<body>
		<?php 
navbar("About Maaatch", 4);
?>
		<main class="container">
		<h1><i><b>Our goal is your happiness</b></i></h1>
		<section id="description">
			<p class="lead">
                Here at Maaatch.com, our mission is to provide our
                customers with the opportunity to find true companionship through
                Maaatching them with the goat of their dreams. Our one of
                a kind al<i>goat</i>rithm takes into consideration user
                preferences and attributes, and utilizes that information
                to provide customers with compatible Maaatches.
            </p>
			<section id="couples" class="row">
                <div class="col-sm-6">
                    <img class="img-rounded center-block img-responsive" id="couple1" src="images/JM.jpg" alt="couple1"/>
Example #12
0
                        </form>
                        </center>
                        <!-- END edit accomodation -->


                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
            <?php 
navbar("accomodations.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #13
0
<!DOCTYPE html>
<html>
	<head>
		<title>Maaatch&nbsp;&nbsp;|&nbsp;&nbsp;Wishlist</title>
		<?php 
require '/var/www/maaatch.com/htdocs/common/common.php';
?>
		<?php 
head_tags();
?>
		<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
        <script src="wishlist.js"></script>
	</head>
	<body>
		<?php 
navbar("Wishlist", 0);
?>
		<main class="container">
            <h1>
                <?php 
if ($active_name) {
    echo $active_name . '\'s Wishlist';
} else {
    echo 'User "' . $active_user . '" not found. :(';
}
?>
            </h1>
            <table class="table table-hover">
                <tr>
                    <th>Goat</th>
                    <th>Gender</th>
Example #14
0
                        </table>
                        </form>
                        </center>
                        <!-- END edit entry -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
                <?php 
navbar("achieve_level.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #15
0
            echo "    <td align=\"center\"><tt>" . format_date($details['date']) . "</tt></td>\n";
            echo "    <td align=\"right\">{$details['lines']}</td>\n";
            echo "   </tr>\n";
    }
}
switch ($format) {
    case 'rss':
        echo " </channel>\n</rss>\n";
        break;
    case 'rdf':
        echo "</rdf:RDF>\n";
        break;
    case 'html':
    default:
        echo "  </table>\n";
        navbar($group, $overview['group']['low'], $overview['group']['high'], $overview['group']['start']);
        foot();
}
function navbar($g, $f, $l, $i)
{
    echo '  <table border="0" cellpadding="2" cellspacing="2" width="100%">' . "\n";
    echo '   <tr>' . "\n";
    echo '    <th class="nav">';
    if ($i > $f) {
        $p = max($i - 20, $f);
        echo "<a href=\"/" . htmlspecialchars($g, ENT_QUOTES, "UTF-8") . "/start/{$p}\"><b>&laquo; previous</b></a>";
    } else {
        echo "&nbsp;";
    }
    echo '</th>' . "\n";
    $j = min($i + 20, $l);
Example #16
0
                        </tr>
                        </table>
                        </form>
                        </center>

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
            <?php 
navbar("guardian_view.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #17
0
    echo "<table align='center'>\n";
    echo "<tr><td>New Group Name:</td>\n";
    echo "<td><input type='text' name='groupname' value='{$groupname}'></td></tr>\n";
    echo "<tr><td colspan=2 align='center'>";
    if ($groupid) {
        echo "<input type='submit' name='submit' value='Modify Group'>";
    } else {
        echo "<input type='submit' name='submit' value='Add Group'>";
    }
    echo "</td></tr>\n";
    echo "</table>\n";
    echo "</form>\n";
}
/****************************************************************/
printheader("Groups of PhpLabware");
navbar($USER["permissions"]);
// when the 'Add a new Group' button has been chosen:
if ($add) {
    group_form("", "");
} elseif ($mod == "true") {
    group_form($groupid, $groupname);
} else {
    // print header of table
    echo "<table border=\"1\" align=center >\n";
    echo "<caption>\n";
    // first handle addition of a new group
    if ($submit == "Add Group") {
        if ($test = add_new_group($db, $groupname)) {
            echo "</caption>\n</table>\n";
            echo "<table align='center'><caption>{$test}</caption></table>";
            group_form("", $groupname);
Example #18
0
                        </table>
                        </form>
                        </center>
                        <!-- END add supervisor -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
            <?php 
navbar("modify_ipp_permission.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #19
0
                        </table>
                        </form>
                        </center>
                        <!-- END edit entry -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
            <?php 
navbar("anecdotals.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #20
0
                        </table>
                        </form>
                        </center>
                        <!-- END add new entry -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
            <?php 
navbar("medical_info.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #21
0
                          </td>
                        </tr>
                        </table></center>
                        </form>
                        <!-- end codes table -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
              <?php 
navbar("main.php");
?>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #22
0
  <head> 
        <title>اتصل بنا |  الكوثر</title>
        <?php 
include "htmlPieces/header_links.php";
?>
  </head>

  <body>
  <div class="container">
    <!--*************  header ***************--> 
    <?php 
include "htmlPieces/header.php";
?>
    <!--*************  Navbar ***************--> 
    <?php 
navbar(12);
?>

    <?php 
function spamcheck($field)
{
    //filter_var() sanitizes the e-mail
    //address using FILTER_SANITIZE_EMAIL
    $field = filter_var($field, FILTER_SANITIZE_EMAIL);
    //filter_var() validates the e-mail
    //address using FILTER_VALIDATE_EMAIL
    if (filter_var($field, FILTER_VALIDATE_EMAIL)) {
        return TRUE;
    } else {
        return FALSE;
    }
Example #23
0
  <?php 
include_once "../analyticstracking.php";
?>

</head>
<body>

<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->

<div id="wrapper">

<!-- NAVBAR -->
<?php 
include "../navbar.php";
echo navbar(true, false, 1);
?>

<!-- OVERLAY: to appear when navbar expands -->
<div class="overlay" style="display: none;"></div>

<div id="main">

  <!-- TOPBAR -->
  <?php 
include "../topbar.php";
echo topbar(false, 1);
?>

	<div class="container content">
Example #24
0
  * Copyright (c) 2003 by Nico Stuurman<*****@*****.**>                       *
  * ------------------------------------------------------------------------ *
  *  This program is free software; you can redistribute it and/or modify it *
  *  under the terms of the GNU General Public License as published by the   *
  *  Free Software Foundation; either version 2 of the License, or (at your  *
  *  option) any later version.                                              *
  \**************************************************************************/
// Needs get/postvars:tablename
// optional get/postvar: viewnameid
/// main include thingies
require './include.php';
require './includes/db_inc.php';
require './includes/general_inc.php';
require './includes/report_inc.php';
printheader($httptitle);
navbar($USER['permissions']);
if ($USER['permissions'] < $WRITE) {
    echo "<h4 align='center'>You do not have sufficient priveleges to create or edit views</h4>\n";
    printfooter();
    exit;
}
if (isset($_POST['tablename'])) {
    $_GET['tablename'] = $_POST['tablename'];
}
$tableinfo = new tableinfo($db);
if ($_GET['viewid']) {
    $viewid = $_GET['viewid'];
} else {
    $viewid = $_POST['viewid'];
}
if (!is_numeric($viewid)) {
Example #25
0
                        </table>
                        </form>
                        </center>
                        <!-- END add school -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
              <?php 
navbar("school_info.php");
?>
</td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #26
0
<?php

// Generates Meleto /html/pt/index.html
$page_title = "Homepage";
navbar("pt");
echo <<<_END
<div>
<img src="/img/icons/spacer.png" alt=" ">
</div>

<div class="center">
<div class="title">Μελετώ, vamos estudar grego</div>

<p>
<a href="/html/pt/coletividade-helenica/index.html"><img src="/img/icons/flags/gr_round.png" alt="Greek flag" style="vertical-align: middle;"><br><span class="title">Aulas da Coletividade Helênica</span></a>
</p>

  <p class="title">
    <a href="/html/en/filoglossia/index.html"><img src="/img/icons/flags/us.png" alt="us">Exercises for ILSP Filoglossia</a>
  </p>

</div>
_END
;
Example #27
0
    // case 'alcNewsTable': $Active = 2; break;
    case 'alcDiverseNewsTable':
        $Active = 2;
        break;
    case 'alcReligiousNewsTable':
        $Active = 3;
        break;
    case 'alcFreeNewsTable':
        $Active = 4;
        break;
    case 'alcArticlesTable':
        $Active = 9;
        break;
}
//  Navbar
navbar($Active);
// pull the data from Database
$per_page = 16;
$pages_query = mysqli_query($conn, "SELECT COUNT(alc_id) FROM {$section} ");
$pages_q = mysqli_fetch_array($pages_query);
$pages_query = array_shift($pages_q);
$pages = ceil($pages_query / $per_page);
$page = (isset($_GET['page']) and $_GET['page'] > 0) ? (int) $_GET['page'] : 1;
$start = ($page - 1) * $per_page;
$data = pagination($section, $start, $per_page);
list($header, $text, $imgLink, $id) = $data;
?>
	
	 <!--   
	 		<ul class="headerList">
				<li>
Example #28
0
/**
 *  function that checks if user is allowed to view page
 *
 * This function should be called before a printheader() call
 */
function allowonly($required, $current)
{
    if (!($required & $current)) {
        printheader('Not Allowed');
        navbar(1);
        echo "&nbsp;<br><h3 align='center'>Sorry, but this page is not for you!";
        echo "</hr><br>&nbsp;\n";
        printfooter();
        exit;
    }
}
Example #29
0
                        </tr>
                        </table></center>
                        </form>
                        <!-- end strength/needs table -->

                        </div>
                        </td>
                    </tr>
                </table></center>
            </td>
            <td class="shadow-right"></td>   
        </tr>
        <tr>
            <td class="shadow-left">&nbsp;</td>
            <td class="shadow-center">
                <?php 
navbar("student_view.php?student_id={$student_id}");
?>
            </td>
            <td class="shadow-right">&nbsp;</td>
        </tr>
        <tr>
            <td class="shadow-bottomLeft"></td>
            <td class="shadow-bottom"></td>
            <td class="shadow-bottomRight"></td>
        </tr>
        </table> 
        <center></center>
    </BODY>
</HTML>
Example #30
0
        <div class="col-xs-12 col-md-2">
          <h4>Решение:</h4>
        </div>
        <div class="col-xs-12 col-md-10">
          <?php 
// Code Here!
function navbar($nav)
{
    echo '<ul>';
    foreach ($nav as $key => $value) {
        echo '<li>' . '<a href="' . $key . '">' . $value . '</a></li>';
    }
    echo '</ul>';
}
$naigation = array('index.php' => 'Home', 'about.php' => 'About Us', 'folio.php' => 'Portfolio', 'blog.php' => 'Blog', 'contacts.php' => 'Contact Us');
navbar($naigation);
?>
        </div>
      </div>
    </section>


    <section class="container">
      <h2>Exercise 8</h2>
      <div class="row">
        <div class="col-xs-12 col-md-2">
          <h4>Задание:</h4>
        </div>
        <div class="col-xs-12 col-md-10">
          <p>Напишите функцию, которая принимает <b>двумерный массив</b> следующего вида</p>
          <code>array(<br>