当前位置: 首页>>代码示例>>PHP>>正文


PHP Catalog::getCat方法代码示例

本文整理汇总了PHP中Catalog::getCat方法的典型用法代码示例。如果您正苦于以下问题:PHP Catalog::getCat方法的具体用法?PHP Catalog::getCat怎么用?PHP Catalog::getCat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Catalog的用法示例。


在下文中一共展示了Catalog::getCat方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

<div class="app app-header-fixed  ">
	<div class="modal section fade" role="dialog" aria-labelledby="myModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<form method="post">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="myModalLabel">Раздел</h4>
					</div>
					<div class="modal-body">
						<div class="container-fluid">
							<label class="hidden_section">Введите раздел</label>
							<select name="section" class="form-control m-b hidden_section">
								<option value="0" selected="selected"></option>
								<?php 
$obj->viewCatOptions($obj->getCat(), 0, 0);
?>
							</select>
							<label>Введите название</label>
							<input type="text" class="form-control m-b" placeholder="Название" name="name">
							<label>Заголовок в браузере (Title)</label>
							<input type="text" class="form-control m-b" placeholder="Title" name="title">
							<label>Описание раздела (Description)</label>
							<input type="text" class="form-control m-b" placeholder="Description" name="desc">
							<label>Ключевые слова (Keywords)</label>
							<input type="text" class="form-control m-b" placeholder="Keywords" name="keywords">
							<label>Url</label>
							<input type="text" class="form-control m-b" placeholder="Url" name="url">
							<input type="hidden" name="go" value="save">
							<input type="hidden" name="edit" value="">
						</div>
开发者ID:Torredo,项目名称:autozip,代码行数:31,代码来源:production.php

示例2: isset

</h1>
					</div>
					<div class="wrapper-md">
						<form method="post" enctype="multipart/form-data">
							<div class="row">
								<div class="col-lg-8">
									<div class="panel panel-default">
										<div class="panel-heading font-bold">Раздел</div>
										<div class="panel-body">
											<div class="form-group">
												<select name="section" class="form-control m-b">
                                                    <?php 
echo isset($nowSection) ? '<option value="' . $nowSection[0]["id"] . '">' . $nowSection[0]["name"] . '</option>' : "";
?>
                                                    <?php 
$section->viewCatOptions($section->getCat(), 0);
?>
												</select>
											</div>
										</div>
	  								</div>
									<div class="panel panel-default">
										<div class="panel-heading font-bold">Описание</div>
										<div class="panel-body">
											<div class="form-group">
                                                <div class="col-lg-12">
                                                    <label>Наименование</label>
                                                    <input type="text" class="form-control m-b required-js" name="name" value="<?php 
echo isset($record[0]["name"]) ? $record[0]["name"] : "";
?>
">
开发者ID:Torredo,项目名称:autozip,代码行数:31,代码来源:add_product.php

示例3:

		<div class="card-total">
			<span class="card-total-text">Итого: </span><span class="card-total-value">29970</span> руб
		</div>
		<div class="btn-wrapp"><a href="<?php 
echo ConfigSites::$prefix;
?>
card" class="btn filled dark">Заказать</a></div>
		<p style="display:none;">Ваша корзина пуста</p>
	</div>
</div>
<div class="for-nav">
	<ul class="nav">
		<li class="nav-item sub">
			<a href="javascript:void(0);">Каталог</a>
            <?php 
Catalog::viewCatLi(Catalog::getCat(), 0);
?>
		</li>
		<li class="nav-item">
			<a href="<?php 
echo ConfigSites::$prefix;
?>
clients">Наши клиенты</a>
		</li>
		<li class="nav-item">
			<a href="<?php 
echo ConfigSites::$prefix;
?>
show">Шоурум</a>
		</li>
		<li class="nav-item sub">
开发者ID:Torredo,项目名称:glzn,代码行数:31,代码来源:menu.php

示例4: isset

											<div class="form-group">
												<select name="section" class="form-control m-b">
                                                    <?php 
if (isset($nowSection) and $nowSection) {
    ?>
<option value="<?php 
    echo $nowSection[0]['id'];
    ?>
"><?php 
    echo $nowSection[0]['name'];
    ?>
</option><?php 
}
?>
                                                    <?php 
Catalog::viewCatOptions(Catalog::getCat(), 0);
?>
												</select>
											</div>
										</div>
	  								</div>
									<div class="panel panel-default">
										<div class="panel-heading font-bold">Описание</div>
										<div class="panel-body">
											<div class="form-group">
                                                <div class="col-lg-12">
                                                    <label>Наименование</label>
                                                    <input type="text" class="form-control m-b required-js" name="name" value="<?php 
echo isset($record[0]["name"]) ? $record[0]["name"] : "";
?>
">
开发者ID:Torredo,项目名称:glzn,代码行数:31,代码来源:add_product.php


注:本文中的Catalog::getCat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。