/** * response text msg * @param $postObj * @return string */ function textResponse($postObj) { $content = $postObj->Content; $contentStr = ''; switch ($content) { case '你好': $contentStr = responseText($postObj, '你好 :-)'); break; default: $contentStr .= news($postObj); break; } return $contentStr; }
function exec_Index($app, $params) { $navigation = navigation(); $app->set('navigation', $navigation); $commits = recentcommits('next', 7, false); $commits .= "<li><hr /></li>\n"; $commits .= recentcommits('experimental', 7, false); $commits .= "<li><hr /></li>\n"; $commits .= recentcommits('master', 7, false); $app->set('recentcommits', $commits); $news = news(!isset($_GET['page']) || !is_numeric($_GET['page']) ? 0 : intval($_GET['page']), False, True); $app->set('news', $news); $app->render('index.php'); }
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="niiith.php?clg=<?php echo news('National Institute Of Technology(NIT) Warangal'); ?> &str=<?php echo stream('National Institute Of Technology(NIT) Warangal'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="nbitm.php?clg=<?php echo news('Indian Institute Of Information Technology(IIIT) Hyderabad'); ?> &str=<?php echo stream('Indian Institute Of Information Technology(IIIT) Hyderabad'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="nnalsar.php?clg=<?php echo news('Faculty Of Law DU ,Delhi'); ?> &str=<?php echo stream('Faculty Of Law DU ,Delhi'); ?> "> <h4>Post news about your college <small> @ be rewsponsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
$j++; $n = $aRow3[0]; $k = $j % 7; } $wait_time = mysql_query("SELECT persons.`name` AS operator,\r\n\t\t\t\t\t\t\t\t\t\tIFNULL((MAX(asterisk_incomming.wait_time)),0) AS max_wait_time, \t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t IFNULL((ROUND(SUM(asterisk_incomming.wait_time)/COUNT(*),2)),0) AS sashualo, \t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\tIFNULL((MIN(asterisk_incomming.wait_time)),0) AS min_wait_time \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\tFROM asterisk_incomming\r\n\t\t\t\t\t\t\t\tRIGHT JOIN users ON users.id=asterisk_incomming.user_id AND disconnect_cause!='ABANDON' AND DATE(asterisk_incomming.call_datetime)=DATE(NOW())\r\n\t\t\t\t\t\t\t\tLEFT JOIN persons ON persons.id=users.person_id\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tGROUP BY persons.`name`\r\n\t\t\t\t\t\t\t\tORDER BY sashualo DESC"); $j = 0; while ($aRow4 = mysql_fetch_array($wait_time)) { $data[wait_time][xAxis][] = $aRow4[0]; for ($i = 0; $i < 3; $i++) { $data[wait_time][series][$i][name] = 'lll'; $data[wait_time][series][$i][type] = "column"; $data[wait_time][series][$i][data][] = (double) $aRow4[$i + 1]; } } $data[mytask] = mytask(); $data[news] = news(); $data[service_level] = service_level(); $data[service_level_unansver] = service_level_unansver(); echo json_encode($data); break; default: echo "null"; } function mytask() { $user_id = $_SESSION['USERID']; $group = checkgroup($user_id); $filter = ''; if ($group != 2 && $group != 5) { $res_row = mysql_fetch_assoc(mysql_query("SELECT \tusers.id as person_id\r\n\t\t\t\t\t\t\t\t\t\t\tFROM \t`users`\r\n\t\t\t\t\t\t\t\t\t\t\tWHERE \t`users`.`id` = {$user_id}")); $filter = "AND (task.responsible_user_id ='{$res_row['person_id']}')";
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="niiith.php?clg=<?php echo news('Indian Institute of Technology(IIT) Roorkee'); ?> &str=<?php echo stream('Indian Institute of Technology(IIT) Roorkee'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div></div>
<div style="float: right; padding-left: 6px"> <a href="devel09-pci.png"> <img src="devel09-pci.png" width="405px" alt="Sample hwloc output"> </a></div> <div style="float: right; clear: both"><!-- "clear: both" prevents news from going near the float image above --> <?php # Lists are not mirrored - use an absolute URL news("hwloc v1.11.1rc1 released", "New bugfix release", "http://www.open-mpi.org/community/lists/hwloc-announce/2015/10/0079.php"); news("hwloc v1.11.0 published", "New feature release", "http://www.open-mpi.org/community/lists/hwloc-announce/2015/06/0078.php"); news("The Best of lstopo published", "Best lstopo graphical outputs", "lstopo"); //news("hwloc v1.10.1 released", // "New stable release", // "http://www.open-mpi.org/community/lists/hwloc-announce/2015/01/0075.php"); news("Network Locality (netloc)", "New hwloc companion", "http://blogs.cisco.com/performance/the-network-locality-project-netloc/"); //news("hwloc tutorial material", // "Slides and code available", // "$topdir/projects/hwloc/tutorials"); ?> </div> <p> The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. It also gathers various system attributes such as cache and memory information as well as the locality of I/O devices such as network interfaces, InfiniBand HCAs or GPUs. It primarily aims at helping applications with gathering information about modern computing
<?php $results = news(); $i = 1; $reply = array(); foreach ($results->item as $item) { $msg = $item->title; $reply[] = $msg; } print_sms_reply($reply); function news() { $yelpql = 'select title from rss where url="http://rss.news.yahoo.com/rss/topstories" LIMIT 10'; $result = getResultFromYQL($yelpql); return $result->query->results; }
echo $show_news . '<br />'; } } // Функция вывода конкретной новости. function show_news($id, $news) { echo $news[$id]; } // Точка входа. // Если новость присутствует - вывести ее на сайте, иначе мы выводим весь список function news($id, $news) { array_key_exists($id, $news) ? show_news($id, $news) : show_all_news($news); } ?> <form method="POST"> <input type="text" name="id" placeholder="Введите номер новости"> <input type="submit" name="news" value="Искать новость"> </form> <?php // Был ли передан id новости в качестве параметра? // если параметр не был передан - выводить 404 ошибку // http://php.net/manual/ru/function.header.php if ($_POST) { if (array_key_exists('id', $_POST) && is_numeric($_POST['id'])) { news($_POST['id'], $news); } else { header("HTTP/1.0 404 Not Found"); echo 'Error 404 Not Found'; } }
function internal_newsDispatch($op) { if (isset($_POST['undo'])) { $op = 'news'; } switch ($op) { case "news": news(); break; case "addnews": editnews(); break; case "editviewer": editviewer(); break; case "modnews": editnews(true); break; case "savenews": savenews(); break; case "delnews": delnews(); break; } }
} $bdd->query("SET NAMES 'utf8'"); echo '<div id = "reload"><div id ="ecran">' . '<div class="col-md-8">'; if ($_SESSION['rang'] <= 2) { table_wait_demand($bdd); } table_borrowing($bdd); stufs_available($bdd); echo '</div></div>'; // DEUXIEME COLONNE !!! echo '<div class = "col-md-4">' . '<div id = connected style="padding-bottom:15px;">' . 'Connecté(e) en tant que :<br \\> <a align = center style = "color:blue;">' . $_SESSION['nom'] . '</a><br \\>' . '<br \\>' . '<button type = "button" onclick = "deco()" class = "btn btn-primary">Déconnexion</button>'; if ($_SESSION['rang'] <= 2) { echo '<button type = "button" onclick="inventaire()" class = "btn btn-info">Gérer les objets</button>'; } echo '</div>'; news($bdd); echo '</div>' . '</div>'; ?> </main> <footer> <script type="text/javascript"> $(document).ready(function () { $('[data-toggle = "tooltip"]').tooltip(); }); setInterval( function () { $('#emprunts').load('./centre.php #emprunts_reload'); }, 1000); setInterval( function ()
//print_r($news); // Функция вывода всего списка новостей. function show_all_news($news) { echo '<strong>Последние новости :</strong><br />'; foreach ($news as $show_news) { echo $show_news . '<br />'; } } // Функция вывода конкретной новости. function show_news($id, $news) { echo $news[$id]; } // Точка входа. // Если новость присутствует - вывести ее на сайте, иначе мы выводим весь список function news($id, $news) { array_key_exists($id, $news) ? show_news($id, $news) : show_all_news($news); } // Был ли передан id новости в качестве параметра? // если параметр не был передан - выводить 404 ошибку // http://php.net/manual/ru/function.header.php if ($_GET) { if (array_key_exists('id', $_GET) && is_numeric($_GET['id'])) { news($_GET['id'], $news); } else { header("HTTP/1.0 404 Not Found"); echo 'Error 404 Not Found'; } }
<!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="home"> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"><?php $name = $_SESSION['pname']; echo 'Welcome ' . $name . '      <small><font color="white"><i>Lots of stuff waiting for you</i></font></small>'; ?> </h3> </div> <div class="panel-body"> <div class="panel panel-primary"> <div class="panel-heading">Your College News<span class="pull-right"><?php $id = $_SESSION['fclg']; $se = news($id); echo '<a href=req.php?ud=' . $se . '><font color="white">View all</font></a>'; ?> </span></div> <div class="panel-body"> <!--Panel1 content STARTS--> <?php require 'hpanel1.php'; ?> </div> </div> </div> <div class="panel-body"> <div class="panel panel-primary"> <div class="panel-heading">Your Stream News<span class="pull-right"><?php
<?php include "../template.php"; include "funcadmin.php"; //Если нажал войти на форме входа if (isset($_POST["adminSignIn"])) { auth($_POST["login"], $_POST["password"], $mysqli, $tmpl["mainAdmin"]); } else { if ($_POST["selectoption"] == "Новости") { news($mysqli, $tmpl['newsAdmin']); } else { if (isset($_POST["selectedNews"])) { if ($_POST["selectnews"] == "Новый вопрос") { addnews($mysqli, $tmpl["addnews"]); } else { insertOrDeleteNews($mysqli, $tmpl["updatenews"], $_POST["selectnews"], $tmpl["updatecoments"]); } } else { if (isset($_POST["addnew"])) { $title = $_POST["title1"]; $category = $_POST["categorynews"]; $text = $_POST["text"]; $isHot = $_POST["isHot"]; uploadfile($mysqli); addnewsDB($mysqli, $title, $category, $text, $isHot); $_SESSION["list"] = $tmpl['mainAdmin']; } else { if (isset($_POST["insertnew"])) { //получим id категории $sth = $mysqli->prepare("SELECT id2 FROM Category2 WHERE categ2 = ? "); $sth->bind_Param("s", $_POST["categorynews"]);
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="niiith.php?clg=<?php echo news('Indian Institute of Technology(IIT) Guwahati'); ?> &str=<?php echo stream('Indian Institute of Technology(IIT) Guwahati'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="nnalsar.php?clg=<?php echo news('ILS Law College ,Pune'); ?> &str=<?php echo stream('ILS Law College ,Pune'); ?> "> <h4>Post news about your college <small> @ be rewsponsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..." /> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="niiith.php?clg=<?php echo news('Indian Institute of Technology(IIT) Kharagpur'); ?> &str=<?php echo stream('Indian Institute of Technology(IIT) Kharagpur'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
register($con, $ip); } else { if ($ask == "boardcast") { boardcast($con, $token, $text); } else { if ($ask == "getuser") { getuser($con, $token); } else { if ($ask == "userexists") { userexists($con); } else { if ($ask == "hot") { hot($con, $token); } else { if ($ask == "news") { news($con, $token); } else { if ($ask == "tidinfo") { tidinfo($con, $bid, $tid); } else { if ($ask == "recentpost") { recentpost($con, $view); } else { if ($ask == "recentreply") { recentreply($con, $view); } else { if ($ask == "rights") { rights($con, $bid, $token); } else { if ($ask == "attach") { attach($con, $token, $path, $filename, $price, $auth);
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="niima.php?clg=<?php echo news('Management Development Institute(MDI) ,Gurgaon'); ?> &str=<?php echo stream('Management Development Institute(MDI) ,Gurgaon'); ?> "> <h4>Post news about your college <small> @ be rewsponsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
</p> <p>Open MPI is developed in a true open source fashion by a consortium of research, academic, and industry partners. The <a href="about/members/">Open MPI Team</a> page has a comprehensive listing of all contributors and active members.</p> <h3 align=center><a href="faq/">See the FAQ page for more technical information</a></h3> <h3 align=center><a href="community/lists/">Join the mailing lists</a></h3> </td> <td valign=top> <?php # Lists are not mirrored - use an absolute URL news("Open MPI v1.8.6 released", "Stable release", "http://www.open-mpi.org/community/lists/announce/2015/06/0068.php"); news("hwloc v1.11.0 published", "New feature release", "http://www.open-mpi.org/community/lists/hwloc-announce/2015/06/0078.php"); news("PMIx v1.0.0 released", "New feature release", "http://www.open-mpi.org/community/lists/pmix-announce/2015/06/0001.php"); news("ORCM v0.9.0 released", "New preview release", "http://www.open-mpi.org/community/lists/orcm-announce/2015/06/0002.php"); news("Performance Benchmarks", "New section on performance benchmarks added", "http://www.open-mpi.org/performance/"); ?> </td> </tr> </table> <?php include_once "{$topdir}/includes/footer.inc";
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="ncmcv.php?clg=<?php echo news('M.S. Ramaiah Medical College ,Banglore'); ?> &str=<?php echo stream('M.S. Ramaiah Medical College ,Banglore'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="nnalsar.php?clg=<?php echo news('Symbiosis Society Law College ,Pune'); ?> &str=<?php echo stream('Symbiosis Society Law College ,Pune'); ?> "> <h4>Post news about your college <small> @ be rewsponsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
break; case 'update_cart': update_cart(); $_SESSION['total_items'] = total_items($_SESSION['cart']); $_SESSION['total_price'] = total_price($_SESSION['cart']); header('Location: index.php?view=cart'); break; case 'admin': break; case 'rings': $val = $_POST['val']; $cat = $_GET['id']; $products = get_cat_products($cat, $val); break; case 'news': $news = news(); break; case 'save_goods': db_connect(); break; case 'del_goods': db_connect(); break; case 'del_goods_save': db_connect(); break; case 'update_goods': db_connect(); break; case 'update_goods_save': db_connect();
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="naiimsd.php?clg=<?php echo news('All Indian Institute Of Medical Science(AIIMS) Delhi'); ?> &str=<?php echo stream('All Indian Institute Of Medical Science(AIIMS) Delhi'); ?> "> <h4>Post news about your college <small> @ be rewsponsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
<?php include 'newsdata.php'; function news($newsarray) { $str = " "; $str = '<div style="width:450px;padding-bottom:5px;padding-left:10px;background:#C2DFFF">'; foreach ($newsarray as $value) { //$str.='<a href="http://mitak.uchenici.bg/news/images/thumbs/black.jpg">' //."<img src={$value['big image link']}/>".'</a>'; $str .= "<style>img {float:left;margin-right:20px;padding-top:5px;width:100px;height:80px;}</style>" . $value['big image link']; $str .= "<h3>{$value['title']}</h3>"; $str .= "<h5>{$value['datepub']}</h5>"; $str .= "<h5>{$value['content']}</h5>" . "<br/>"; } return $str; //print_r($newsarray); } news($newsdata); ?>
<?php } else { //Home page ?> <table cellspacing="0" cellpadding="0" border="0" width="549" height="336"> <tr /><td><img src="images/wel1.jpg" alt="welcome"><td><img src="images/pro1.jpg" alt="aut-o-meter"> <tr /><td width="256" height="105" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td>Hey! Welcome to my website! I hope you've come to help fund my first car! Please help me achieve my goal to raise enough money to fund my first car. My plan is for everyone to give me 5 dollars and soon I'll have enough money to buy my first car! <a href="main.php" class="d">read more at the old homepage...</a><td width="16"></table><td width="256" height="105" valign="top"> <?php drawProgress($currentMoney, "Long-term goal", 0, 1000, 256, 16); echo '<br />'; drawProgress($currentMoney, "Second hundred", 100, 200, 256, 16); ?> <tr /><td><img src="images/ld1.jpg" alt="dream cars"></td><td><img src="images/nw1.jpg" alt="news"></td> <tr /><td width="256" height="104" valign="top" background="images/van.jpg" style="background-repeat: no-repeat;"></td> <td width="256" height="104" valign="top"><?php news(); ?> </td> <tr /><td align="right" colspan="2"><img src="images/nw3.jpg"></td> </table> <?php } ?> </table> <table align="center" cellspacing="0" cellpadding="0" border="0"> <tr /><td colspan="3" background="images/m4.jpg" height="294"><table cellspacing="0" cellpadding="0" border="0"><tr /><td width="160" align="left"><center><p />Portfolio:<p /><a href="http://www.13willows.com" style="font-size: 16px;">13 Willows</a><br /><a href="http://halo2.13willows.com" style="font-size: 16px;">All4Free</a><br /><a href="http://www.napnode.com" style="font-size: 16px;">NAP node</a><br /><a href="http://wingit.angeltowns.com/" style="font-size: 16px;">Wingit</a></center></td> <td width="471" align="right" valign="top"><center><font style="font-size: 20px;"><b><u>Not</u> My Car :(</b></font></center></td> <td width="139" align="right"> <form name="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick">
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="naiimsd.php?clg=<?php echo news('Maulana Azad Medical College(MAMC) ,Delhi'); ?> &str=<?php echo stream('Maulana Azad Medical College(MAMC) ,Delhi'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>
$title_t = $rez['title']; $fdate = $rez['full_date']; $cat_title = $rez['title_cat']; $tm = date('H:i', $fdate); $y = date('Y', $fdate); $d = date('d', $fdate); $m = date('m', $fdate); $i_fdate = date("d.m.Y", $fdate); $last = round(($time - $fdate) / 60); $decl = declOfNum($last, array("минуту", "минуты", "минут")); if ($last < 60) { $global_time = "{$decl} назад"; } elseif ($i_fdate == date("d.m.Y", $time)) { $global_time = "Сегодня, {$tm}"; } elseif ($i_fdate == date("d.m.Y", strtotime("-1 day"))) { $global_time = "Вчера, {$tm}"; } elseif ($y == date("d.m.Y", $time)) { $global_time = "{$tm} {$d}/{$m}"; } else { $global_time = "{$i_fdate}"; } echo "<div class='GameList'><a href=\"/hardware/{$cat_title}/{$id_id}/\"><img alt='{$title_t}' src='/view.php?id={$id_id}' height='360' width='518'></a><h3><a href=\"/hardware/{$cat_title}/{$id_id}/\">{$title_t}</a></h3><div class='AuthorPostBlock'><div class='SectionName'><a href=\"/hardware/{$cat_title}/\">{$cat_title}</a></div><div class='AuthorPost'><a href=''>{$author}</a></div><div class='DatePost'>{$global_time}</div><div class='IcoBlock'><div class='Views'>{$col}</div></div></div></div>"; } echo "</div>"; } } } } echo news(); ?> </div>
<a class="pull-left" href="#"> <img class="media-object" src="../../assets/simg/' . $img . '.jpg" alt="..."> </a> <div class="media-body"> <h6 class="media-heading"><b>' . $name . ' </b><small>' . $kclg . ' <font face="Latha" size="1px">[posted on ' . $samay . ']</font></small></h6> ' . $kcom . '<br/><small>' . $delink . '</small> </div> </div>'; } $c = $c + 1; } ?> </div> <div class="panel-footer"> <form class="form-horizontal" role="form" method="post" action="ncmcv.php?clg=<?php echo news('Kasturba Medical College ,Manipal'); ?> &str=<?php echo stream('Kasturba Medical College ,Manipal'); ?> "> <h4>Post news about your college <small> @ be responsible and help others</small></h4> <div class="form-group" style="padding:14px;"> <textarea class="form-control" placeholder="@ feel free" name="niitk"></textarea> </div> <button class="btn btn-success pull-right" type="submit" name="subniitk" value="Post">Post</button><ul class="list-inline"><li><a href="#"><i class="glyphicon glyphicon-align-left"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-center"></i></a></li><li><a href="#"><i class="glyphicon glyphicon-align-right"></i></a></li></ul> </form> </div> </div> </div>