@foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div class="panel-body"> <form class="form-horizontal" role="form" method="POST" action="{{getUrl('auth/login')}}"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <div class="form-group"> <label class="control-label">ユーザーID</label> <input type="email" class="form-control" name="user_id" value="{{ old('email') }}" placeholder="メールアドレスを入力して下さい"<?php echo isAgent('Trident') ? '' : ' autofocus'; ?> > </div> <div class="form-group"> <label class="control-label">パスワード</label> <input type="password" class="form-control" name="password" placeholder="6文字以上入力して下さい"> </div> <div class="clearfix form-group"> <a class="pull-right" href="{{ getUrl('/password/email') }}"><span class="octicon octicon-issue-opened"></span>パスワードをお忘れですか?</a> </div> <div class="col-md-12">
<?php $materialArr = explode("|", CATEGORY); $colorsArr = explode("|", COLORS); $sourcesArr = explode("|", SOURCES); $allcomponents = []; $qry = "SELECT compid, compimg, stock, costpercomp, material, color, source, cutoff, warning FROM components"; $stmt = $dbcon->prepare($qry); if (!$stmt->execute()) { die('Error : (' . $dbcon->errno . ') ' . $dbcon->error); } $stmt->store_result(); $stmt->bind_result($a, $b, $c, $d, $e, $f, $g, $h, $i); while ($stmt->fetch()) { $allcomponents[] = ['compid' => $a, 'compimg' => $b, 'stock' => $c, 'costpercomp' => $d, 'material' => $e, 'color' => $f, 'source' => $g, 'cutoff' => $h, 'warning' => $i]; } $stmt->close(); $jsondata = array("isAgent" => isAgent(), "materials" => $materialArr, "colors" => $colorsArr, "components" => $allcomponents, "sources" => $sourcesArr); ?> <script type="text/javascript"> var model = <?php echo json_encode($jsondata); ?> ; </script>
$stmt = $dbcon->prepare($qry); if (!$stmt->execute()) { die('Error : (' . $dbcon->errno . ') ' . $dbcon->error); } $stmt->store_result(); $stmt->bind_result($a); while ($stmt->fetch()) { if ($a == "") { continue; } if (strpos($a, ",") !== false) { $a_parts = explode(",", $a); foreach ($a_parts as $ap) { $tags[] = trim(ucwords($ap)); } } else { $tags[] = trim(ucwords($a)); } } $stmt->close(); $jsondata = array("siteUrl" => SITE_URL, "items" => $itemsArr, "styles" => array('jhumka', 'chandelier', 'dangler', 'stud', 'hoop'), "isAgent" => isAgent(), "materials" => $categoriesArr, "products" => $allproducts, "tags" => $tags); // var_dump($allproducts); ?> <script type="text/javascript"> var model = <?php echo json_encode($jsondata); ?> ; </script>
?> </a></li> <?php } ?> <?php } else { ?> <?php if (!is_admin()) { ?> <?php if (isAgent($this->session->userdata('user_id')) == 1) { ?> <?php $agentlbl = 'Agent'; ?> <?php } else { ?> <?php $agentlbl = 'User'; ?> <?php } ?>
$tags = []; $qry = "SELECT DISTINCT admintags from pieces"; $stmt = $dbcon->prepare($qry); if (!$stmt->execute()) { die('Error : (' . $dbcon->errno . ') ' . $dbcon->error); } $stmt->store_result(); $stmt->bind_result($a); while ($stmt->fetch()) { if ($a == "") { continue; } if (strpos($a, ",") !== false) { $a_parts = explode(",", $a); foreach ($a_parts as $ap) { $tags[] = ucwords($ap); } } else { $tags[] = ucwords($a); } } $stmt->close(); $jsondata = array("items" => $itemsArr, "isAgent" => isAgent(), "materials" => $categoriesArr, "styles" => array("hook", "hoop", "jhumka", "chandelier", "dangler", "stud"), "pieces" => $allpieces, "tags" => $tags); ?> <script type="text/javascript"> var model = <?php echo json_encode($jsondata); ?> ; </script>
<p class="forget-pass">メールアドレスと新しいパスワードを入力して下さい。</p> <div class="form-group"> <label class="control-label">メールアドレス</label> <input type="email" class="form-control" name="email" value="{{ old('email') }}"> </div> <div class="form-group"> <label class="control-label">新しいパスワード</label> <input type="password" class="form-control" name="password" placeholder="6文字以上入力して下さい"> </div> <div class="form-group"> <label class="control-label"><?php echo isAgent('sp') ? "新しいパスワード(確認用)" : "新しいパスワード<br>(確認用)"; ?> </label> <input type="password" class="form-control" name="password_confirmation"> </div> <div class="form-group"> <div class="col-md-12"> <button type="submit" class="conf-btn center-block">リセット</button> </div> </div> </form> </div> </div> </main>
public function detail($unique_id = '') { $a = rand(1, 10); $b = rand(1, 10); $c = rand(1, 10) % 3; if ($c == 0) { $operator = '+'; $ans = $a + $b; } else { if ($c == 1) { $operator = 'X'; $ans = $a * $b; } else { if ($c == 2) { $operator = '-'; $ans = $a - $b; } } } $this->session->set_userdata('security_ans', $ans); $value['question'] = $a . " " . $operator . " " . $b . " = ?"; $value['post'] = $this->show_model->get_post_by_unique_id($unique_id); if ($value['post']->num_rows() > 0) { $value['distance_info'] = $this->get_existing_distance_info($value['post']->row()->id); } else { $value['distance_info'] = array(); } $id = 0; if ($value['post']->num_rows() > 0) { $row = $value['post']->row(); $id = $row->id; $seo['key_words'] = get_post_meta($row->id, 'tags'); $created_by = $row->created_by; $value['isAgent'] = isAgent($created_by); } $data['content'] = load_view('detail_view', $value, TRUE); $data['alias'] = 'detail'; $curr_lang = $this->uri->segment(1) != '' ? $this->uri->segment(1) : 'en'; $title = get_title_for_edit_by_id_lang($id, $curr_lang); $description = get_description_for_edit_by_id_lang($id, $curr_lang); $data['sub_title'] = $title; $description = strip_tags($description); $description = str_replace("'", "", $description); $description = str_replace('"', "", $description); $seo['meta_description'] = $description; $data['seo'] = $seo; load_template($data, $this->active_theme); }
} $stmt->store_result(); $stmt->bind_result($a, $b, $bh, $bw, $c, $cx, $cy, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n, $o, $p, $q, $s, $t, $u); while ($stmt->fetch()) { $row = []; $row = ['id' => $a, 'carouselImg' => $b, 'imgheight' => $bh, 'imgwidth' => $bw, 'bodypart' => $c, 'centerx' => $cx, 'centery' => $cy, 'toppoints' => $d, 'topX' => $e, 'topY' => $f, 'bottompoints' => $g, 'botX' => $h, 'botY' => $i, 'color' => $j, 'texture' => $k, 'style' => $l, 'admintags' => $m, 'material' => $n, 'price' => $o, 'name' => $p, 'quantity' => $q, 'priority' => $s, 'hookImg' => $t, 'availability' => $u]; $qry2 = "SELECT color, design, imagefile, imageid, pieceid from pieceimages where pieceid = " . $a; $stmt1 = $dbcon->prepare($qry2); if (!$stmt1->execute()) { die('Error : (' . $dbcon->errno . ') ' . $dbcon->error); } $stmt1->store_result(); $stmt1->bind_result($a, $b, $c, $d, $e); $images = []; while ($stmt1->fetch()) { $images[] = ['color' => $a, 'design' => $b, 'imagefile' => $c, 'imageid' => $d, 'pieceid' => $e]; } $stmt1->close(); $row["images"] = $images; $elements[] = $row; } $stmt->close(); $jsondata = array("siteUrl" => SITE_URL, "isAgent" => isAgent(), "startStyle" => $startStyle, "materials" => $categoriesArr, "styles" => array('hook', 'jhumka', 'chandelier', 'dangler', 'stud', 'hoop'), "colorsArr" => $colorsArr, "elements" => $elements, "overheads" => OVERHEADS, "vat" => TAXPERCENT, "margin" => PROFITPERCENT, "showHelp" => $showHelp, "shipping" => [SHIPPINGCHARGES_SMALL, SHIPPINGCHARGES_MEDIUM, SHIPPINGCHARGES_LARGE]); // var_dump($elements); ?> <script type="text/javascript"> var model = <?php echo json_encode($jsondata); ?> ; </script>
if (strpos($mainimage, 'ERROR') !== false && $mode == "new") { $error .= "Form Error.. main image uploads failed." . $_FILES['mainfile']['error']; } if (strpos($mainimage, 'ERROR') === false) { $mi = $mainimage; } if (strpos($alt1image, 'ERROR') === false) { $ai1 = $alt1image; } if (strpos($alt2image, 'ERROR') === false) { $ai2 = $alt2image; } if ($error == "") { if ($mode == "new") { $curr_userID = getCurrentUserID(); $curr_userType = isAgent() ? 0 : 1; $curr_userEmail = getCurrentUserEmail(); $query = "INSERT INTO `products` (`name`, `price`, `bodypart`, `material`, `mainimg`, `alt1img`, `alt2img`, `status`, `shortdesc`, `detaildesc`, `addinfo`, `featured`, `addedUsertype`, `addedbyUserEmail`, `quantity`, `size`, `tags`, `style`) VALUES ( ?, ?, ?,?,?,?, ?,?, ?, ?, ?, ?, ?, ?, ?,?,?,?)"; $statement = $dbcon->prepare($query); //bind parameters for markers, where (s = string, i = integer, d = double, b = blob) $statement->bind_param('sdiisssisssiisisss', $pname, floatval($pprice), intval($pitem), intval($pcategory), $mi, $ai1, $ai2, intval($pstatus), $sdesc, $pdesc, $addinfo, intval($featured), $curr_userType, $curr_userEmail, intval($pquantity), $psize, $ptags, implode(",", $style_list)); if ($statement->execute()) { $mode = "edit"; $pid = $statement->insert_id; } else { die('Error : (' . $dbcon->errno . ') ' . $dbcon->error); } $statement->close(); } else { if ($mode == "edit") { //run the update query for the $pid.