</tr> <?php do { ?> <tr <?php echo " style=\"background-color:{$color}\""; ?> > <td class="dataList" ><?php echo $row_upcoming['upcoming']; ?> </td> <td class="dataList" ><?php if ($row_upcoming['upcomingDate'] != "") { $date2 = $row_upcoming['upcomingDate']; $realdate = dateconvert($date2, 2); echo $realdate; } else { echo " "; } ?> </a></td> <?php if ($row_pref['mode'] == "2" && $row_user['userLevel'] == "1") { ?> <td class="dataList"><a href="index.php?action=list&dbTable=<?php echo $dbTable; ?> &filter=<?php echo $row_upcoming['brewBrewerID']; ?>
?> </td> <?php } ?> </tr> <?php do { ?> <tr <?php echo " style=\"background-color:{$color}\""; ?> > <td class="dataList"><?php $date = $row_news['newsDate']; $realdate = dateconvert($date, 3); echo $realdate; ?> </td> <td class="dataList"><?php echo $row_news['newsHeadline']; ?> </td> <td class="dataList"><?php echo truncate_string($row_news['newsText'], 100, '...'); ?> </td> <td class="dataList"><?php echo $row_news['newsPoster']; ?> </td>
} if ($id == "default" && $assoc == "brewing") { ?> <tr> <td class="dataLabelLeft">Brew:</td> <td class="data"> <select name="awardBrewID"> <?php do { ?> <option value="<?php echo $row_brewBlogs['id']; ?> "><?php echo $row_brewBlogs['brewName'] . " ["; echo dateconvert($row_brewBlogs['brewDate'], 2) . "] "; ?> </option> <?php } while ($row_brewBlogs = mysql_fetch_assoc($brewBlogs)); ?> </select> </td> </tr> <?php } if ($id == "default" && $assoc == "recipes") { ?> <tr> <td class="dataLabelLeft">Brew:</td> <td class="data">
if ($page != "recipe") { echo truncate_string($row_list['brewName'], 100, '...'); } else { echo $row_list['brewName']; } if ($row_list['brewName'] != $row_log['brewName']) { ?> </a><?php } ?> </td> <?php if ($page != "recipe") { ?> <td class="listRightAlign"><?php echo dateconvert($row_list['brewDate'], 3); ?> </td><?php } ?> </tr> <?php } } while ($row_list = mysql_fetch_assoc($list)); } ?> <tr> <td colspan="2"><div align="center"><?php if ($page == "recipe" && $total > $display) { paginate($display, $pg, $total); } elseif (($page == "brewblog" || $page == "current") && $total > $display) {
echo "<tr><th>Time (hh:mm)</th><th>Protocal</th><th>From</th><th>bytes</th></tr>"; //*/ echo "<tr><th>Time (hh:mm)</th><th>From</th><th>To</th><th>bytes</th></tr>"; } $ctrno = 0; while ($buffer = fgets($fpinput, 5000)) { $str = explode(";", $buffer); $nofld = count($str); $fldno[$nofld] = $fldno[$nofld] + 1; if ($nofld > 5) { $buffer1 = ereg_replace("{$LANipadd}", "<b>{$LANipadd}</b>", $str[4]); if ($buffer1 != $str[4] && $str[6] != "") { //packet from or to $netip //manupulate time string $dstrtmp = $str[0]; $str[0] = dateconvert($str[0]); $datestr = dateconvert_date($dstrtmp); $spl = explode("@", $str[0]); $str[0] = $spl[0]; //manupulate "from to string" $tmp = explode(" to ", $str[4]); $from0 = ereg_replace("from ", "", $tmp[0]); $from1 = explode(":", $from0); $from = $from1[0]; $fromout = substr($from, 0, 11); if ($fromout != "{$LANipadd}") { if (trim($from) != "{$LANipadd}.1") { $to = substr($tmp[1], 12, 3); if ($to >= 121 && $to <= 177) { $bytes = explode(",", $str[6]); $bytesctr = ereg_replace(" bytes", "", $bytes[1]);
function insertBlog($recipe) { include '../includes/scrubber.inc.php'; $brewing = mysql_connect($GLOBALS['hostname_brewblog'], $GLOBALS['username_brewblog'], $GLOBALS['password_brewblog']) or trigger_error(mysql_error()); mysql_select_db($GLOBALS['database_brewing'], $brewing) or die(mysql_error()); $sqlQuery = "INSERT INTO brewing "; $fields = "(brewName"; $values = " VALUES('" . strtr($recipe->name, $html_string) . "'"; $vf = array(); $counter = array(); // $batchNumber = " SELECT brewBatchNum FROM `brewing` ORDER BY brewBatchNum DESC LIMIT 1 "; //$vf["brewName"] = $recipe->name; $vf["brewStyle"] = $recipe->style->name; $dateCheck = datecharcheck($recipe->date); if ($dateCheck == "true") { $vf["brewDate"] = dateconvert($recipe->date, "4"); } elseif ($dateCheck == "4-") { $vf["brewDate"] = $recipe->date; } else { $vf["brewDate"] = date("Y-m-d"); } $vf["brewYield"] = $this->convertUnit($recipe->batchSize, "volume"); $vf["brewComments"] = strtr($recipe->notes, $html_string); $vf["brewMethod"] = $recipe->type; $counter["grain"] = 0; $counter["extract"] = 0; $counter["adjunct"] = 0; foreach ($recipe->fermentables->fermentables as $fermentable) { switch ($fermentable->type) { case "Grain": $counter["grain"]++; if ($counter["grain"] <= 15) { $vf["brewGrain" . $counter["grain"]] = strtr($fermentable->name, $html_string); $vf["brewGrain" . $counter["grain"] . "Weight"] = $this->convertUnit($fermentable->amount, "weight"); } break; case "Extract": $counter["extract"]++; if ($counter["extract"] <= 5) { $vf["brewExtract" . $counter["extract"]] = strtr($fermentable->name, $html_string); $vf["brewExtract" . $counter["extract"] . "Weight"] = $this->convertUnit($fermentable->amount, "weight"); } break; case "Dry Extract": $counter["extract"]++; if ($counter["extract"] <= 5) { $vf["brewExtract" . $counter["extract"]] = strtr($fermentable->name, $html_string); $vf["brewExtract" . $counter["extract"] . "Weight"] = $this->convertUnit($fermentable->amount, "weight"); } break; case "Adjunct": $counter["adjunct"]++; if ($counter["adjunct"] <= 9) { $vf["brewAddition" . $counter["adjunct"]] = strtr($fermentable->name, $html_string); $vf["brewAddition" . $counter["adjunct"] . "Amt"] = $this->convertUnit($fermentable->amount, "weight"); } break; case "Sugar": $counter["adjunct"]++; if ($counter["adjunct"] <= 9) { $vf["brewAddition" . $counter["adjunct"]] = strtr($fermentable->name, $html_string); $vf["brewAddition" . $counter["adjunct"] . "Amt"] = $this->convertUnit($fermentable->amount, "weight"); } break; default: break; } } $counter["misc"] = 0; foreach ($recipe->miscs->miscs as $misc) { $counter["misc"]++; if ($counter["misc"] <= 4) { $vf["brewMisc" . $counter["misc"] . "Name"] = strtr($misc->name, $html_string); $vf["brewMisc" . $counter["misc"] . "Type"] = $misc->type; // BeerXML differntiates between liquid and volume - BB 2.2 does not - item for future release $vf["brewMisc" . $counter["misc"] . "Use"] = $misc->useFor; $vf["brewMisc" . $counter["misc"] . "Time"] = round($misc->time, 0); $vf["brewMisc" . $counter["misc"] . "Amount"] = round($misc->amount, 2); // Beer XML standard is kg or liters - will need to address in subsequent release } } $counter["hops"] = 0; foreach ($recipe->hops->hops as $hop) { $counter["hops"]++; if ($counter["hops"] <= 15) { $vf["brewHops" . $counter["hops"]] = strtr($hop->name, $html_string); $vf["brewHops" . $counter["hops"] . "Weight"] = $this->convertUnit($hop->amount, "hopWeight"); $vf["brewHops" . $counter["hops"] . "IBU"] = $hop->alpha; $vf["brewHops" . $counter["hops"] . "Time"] = round($hop->time, 0); $vf["brewHops" . $counter["hops"] . "Use"] = $hop->use; $vf["brewHops" . $counter["hops"] . "Type"] = $hop->type; $vf["brewHops" . $counter["hops"] . "Form"] = $hop->form; } } $counter["yeast"] = 0; foreach ($recipe->yeasts->yeasts as $yeast) { $vf["brewYeast"] = strtr($yeast->name, $html_string); $vf["brewYeast" . "Man"] = $yeast->laboratory; $vf["brewYeast" . "Form"] = $yeast->form; $vf["brewYeast" . "Type"] = $yeast->type; if ($yeast->amountIsWeight == "TRUE") { $vf["brewYeast" . "Amount"] = $this->convertUnit($yeast->amount, "weight"); } else { $vf["brewYeast" . "Amount"] = $this->convertUnit($yeast->amount, "volume"); } } $counter["mash"] = 0; //$vf["brewMashGrainWeight"] = $recipe->mash-> $vf["brewMashGrainTemp"] = $this->convertUnit($recipe->mash->grainTemp, "temperature"); $vf["brewMashTunTemp"] = $this->convertUnit($recipe->mash->tunTemp, "temperature"); $vf["brewMashPH"] = $recipe->mash->ph; $vf["brewMashGrainWeight"] = $totalGrainWeight; $vf["brewMashType"] = "Infusion"; // this is hard coded because it is the most common and the beerXML spec does not mention it $vf["brewMashEquipAdjust"] = $recipe->mash->equipAdjust; // FIELDS TO COMPLETE: spargeAmt $vf["brewMashSpargeTemp"] = $this->convertUnit($recipe->mash->spargeTemp, "temperature"); $totalSpargeAmount = 0; foreach ($recipe->mash->mashSteps as $mashStep) { $counter["mash"]++; if ($counter["mash"] <= 5) { $vf["brewMashStep" . $counter["mash"] . "Name"] = strtr($mashStep->name, $html_string); $vf["brewMashStep" . $counter["mash"] . "Temp"] = $this->convertUnit($mashStep->stepTemp, "temperature"); $vf["brewMashStep" . $counter["mash"] . "Time"] = $mashStep->stepTime; $vf["brewMashStep" . $counter["mash"] . "Desc"] = $mashStep->type; $totalSpargeAmount += $mashStep->infuseAmount; } } $vf["brewMashSpargAmt"] = round($this->convertUnit($totalSpargeAmount, "volume"), 3); foreach ($recipe->waters->waters as $water) { $vf["brewWaterName"] = strtr($water->name, $html_string); $vf["brewWaterAmount"] = $water->amount; $vf["brewWaterCalcium"] = $water->calcium; $vf["brewWaterBicarb"] = $water->bicarbonate; $vf["brewWaterSulfate"] = $water->sulfate; $vf["brewWaterChloride"] = $water->chloride; $vf["brewWaterMagnesium"] = $water->magnesium; $vf["brewWaterPH"] = $water->ph; $vf["brewWaterNotes"] = $water->notes; $vf["brewWaterSodium"] = $water->sodium; } $vf["brewOG"] = $recipe->og; // changed_GH $vf["brewFG"] = $recipe->fg; // changed_GH $vf["brewComments"] = strtr($recipe->notes, $html_string); if ($recipe->primaryAge != "") { $vf["brewPrimary"] = round($recipe->primaryAge, 0); } if ($recipe->primaryTemp != "") { $vf["brewPrimaryTemp"] = $this->convertUnit($recipe->primaryTemp, "temperature"); } if ($recipe->secondaryAge != "") { $vf["brewSecondary"] = round($recipe->secondaryAge, 0); } if ($recipe->secondaryTemp != "") { $vf["brewSecondaryTemp"] = $this->convertUnit($recipe->secondaryTemp, "temperature"); } if ($recipe->tertiaryAge != "") { $vf["brewTertiary"] = round($recipe->tertiaryAge, 0); } if ($recipe->tertiaryTemp != "") { $vf["brewTertiaryTemp"] = $this->convertUnit($recipe->tertiaryTemp, "temperature"); } if ($recipe->age != "") { $vf["brewAge"] = round($recipe->age, 0); } if ($recipe->ageTemp != "") { $vf["brewAgeTemp"] = $this->convertUnit($recipe->ageTemp, "temperature"); } if ($recipe->ibu != "") { $vf["brewBitterness"] = $recipe->ibu; } if ($recipe->estimatedColor != "") { $vf["brewLovibond"] = 0 . rtrim($recipe->estimatedColor, " SRM"); } $vf["brewBrewerID"] = $GLOBALS['loginUsername']; if ($recipe->efficiency != "") { $vf["brewEfficiency"] = $recipe->efficiency; } if ($recipe->boilSize != "") { $vf["brewPreBoilAmt"] = $this->convertUnit($recipe->boilSize, "volume"); } // changed_GH to accomodate club edition foreach ($vf as $field => $value) { $fields .= "," . $field; $values .= ",'" . $value . "'"; } $fields .= ", brewArchive"; $fields .= ")"; $values .= ", 'N'"; $values .= ")"; $sqlQuery .= $fields . $values; //echo $sqlQuery . "<br />"; $Result1 = mysql_query($sqlQuery, $brewing) or die(mysql_error()); $this->insertedRecipes[mysql_insert_id()] = $recipe->name; }
<div class="modal-body"> <div class="head">Lapang yang dipesan</div> <div class="desc">daftar lapang yang kamu pesan</div> <table class="table table-hover" > <thead> <tr> <th>Tanggal Pesan</th> <th>Lapang</th> <th>Waktu</th> </tr> </thead> <tbody> <?php $tampilkan_member = mysql_query("SELECT tanggal_pesan,lapang.nama,\n DATE_FORMAT(waktu_awal, '%H:%i') as waktu_awal,\n DATE_FORMAT(waktu_akhir, '%H:%i') as waktu_akhir\n FROM pemesanan,lapang,waktu\n WHERE id_pelanggan ='{$myid}' and lapang.id_lapang=pemesanan.id_lapang AND\n waktu.id_waktu = pemesanan.id_waktu\n order by tanggal_pesan"); while ($tampil_member = mysql_fetch_array($tampilkan_member)) { echo "\n <tr>\n <td>" . dateconvert($tampil_member['tanggal_pesan']); echo "</td>\n <td>{$tampil_member['nama']}</td>\n <td>{$tampil_member['waktu_awal']} - {$tampil_member['waktu_akhir']}</td>\n </tr>\n "; } ?> </table> </div> <div class="modal-footer"> <button class="button-foot" type="submit">Submit</button> <button class="button-foot" data-dismiss= "modal">Close</button> </div> </form> </div> </div> </div> </body>
<meta name="keywords" content="learning, website" /> <meta name="author" content="Zamzam Nurzaman" /> <link rel="stylesheet" href="../../assets/css/bootstrap.min.css"> <link rel="stylesheet" href="../../assets/css/style_user.css"> <link rel="stylesheet" href="../../assets/vendor/font-awesome/css/font-awesome.min.css"> <link href="../../assets/fonts/myfonts.css" rel="stylesheet" type="text/css"> <script src="../../assets/js/jquery.min.js"></script> <script src="../../assets/js/bootstrap.min.js"></script> </head> <body> <?php session_start(); date_default_timezone_set('Asia/Jakarta'); include "../../main/connection.php"; include "../../main/myfunction.php"; $nama = $_POST["nama"]; $alamat = $_POST["alamat"]; $telepon = $_POST["telepon"]; $email = $_POST["email"]; $username = $_POST["username"]; $password = md5($_POST["password"]); $tanggal = date('Y-m-d h:i:s'); $sql2 = mysql_query("insert into pelanggan value('','{$nama}','{$alamat}','{$telepon}','{$email}')"); $id_pelanggan = mysql_insert_id(); $id_member = "M" . $id_pelanggan; $sql = mysql_query("INSERT INTO member values ('{$id_pelanggan}','{$id_member}','{$username}','{$password}','Y','{$tanggal}','',0)"); $tampil_admin = mysql_query("SELECT *\n FROM pelanggan,member\n WHERE tanggal_daftar='{$tanggal}' and pelanggan.id_pelanggan=member.id_pelanggan "); while ($tampil = mysql_fetch_array($tampil_admin)) { echo "\n <div class='container'>\n <div class='align'>\n <div class='tiket'>\n <div class='tiket-title'>\n <span> Selamat, Anda Telah Terdaftar</span>\n <span class='waktu'></span>\n </div>\n <div class='row tiket-body'>\n <div class='col-lg-5'>Tanggal Daftar</div>\n <div class='col-lg-7'>" . dateconvert($tanggal) . "</div>\n <div class='col-lg-5'>Nama Lengkap</div>\n <div class='col-lg-7'>{$tampil['nama']}</div>\n <div class='col-lg-5'>Alamat</div>\n <div class='col-lg-7'>{$tampil['alamat']}</div>\n <div class='col-lg-5'>Telepon</div>\n <div class='col-lg-7'>{$tampil['no_telp']}</div>\n <div class='col-lg-5'>Username</div>\n <div class='col-lg-7'>{$tampil['username']}</div>\n <div class='col-lg-5'>Password</div>\n <div class='col-lg-7'>*******************</div>\n <a type='button' class='btn btn-default tiket-button' href='../../index.php'>Kembali</a>\n </div>\n </div>\n </div>\n </div>"; }
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6"><strong>Brew Date:</strong></div> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6"><?php echo dateconvert($row_log['brewDate'], 2); ?> </div> </div> <?php } ?> <?php if (!empty($row_log['brewTapDate'])) { ?> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6"><strong>Tap Date:</strong></div> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6"><?php echo dateconvert($row_log['brewTapDate'], 2); ?> </div> </div> <?php } ?> <?php if (!empty($row_log['brewCost'])) { ?> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6"><strong>Cost:</strong></div> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6"><?php echo $row_log['brewCost']; ?> </div>