Пример #1
0
?>
</head>
<body>
	<div id="ibody">
		<div id="container">
			<div id="container_result">
				<div id="breadbrum">
					<a href="/" target="_blank"><div id="log"></div></a>
					<a href="/assistant/_index.php">助手首页</a>
					<?php 
if (in_array($_GET['age'], array(-2, -1))) {
    echo " >> ", convert_age($_GET['age']);
    $breads = array();
}
if (in_array($_GET['age'], array(1, 2, 3, 4))) {
    echo " >> <a href='/assistant/_index.php?age={$_GET['age']}'>", convert_age($_GET['age']), "</a>";
}
$len = count($breads);
$i = 0;
foreach ($breads as $item) {
    $i++;
    if ($i == $len) {
        echo " >> {$item->name}";
    } else {
        echo " >> <a href='list.php?category_id={$item->id}'>{$item->name}</a>";
    }
}
?>
					
				</div>
				<?php 
Пример #2
0
$filter_age = array(-2, -1, 1, 2, 3);
?>
<div class="result_list">
	<?php 
echo $current_cate->name;
?>
</div>
<?php 
$sql = "select * from eb_assistant where is_adopt=1 and category_id = {$current_cate->id} and age = {$age} order by priority asc,created_at desc";
$assistants = $db->paginate($sql, 20);
$assistants || ($assistants = array());
?>
<div class="result_banner">
	<div class="result_pg_top">
		<?php 
echo convert_age($age);
?>
	</div>
	<div class="result_pg_content">
		<?php 
foreach ($assistants as $assistant) {
    ?>
		<div class="result_container2" style="<?php 
    if ($i == 0) {
        echo "margin-top:5px;";
    }
    ?>
">
			<div class="result_title2"><a href="/assistant/assistant.php?id=<?php 
    echo $assistant->id;
    ?>
Пример #3
0
            break;
        default:
            return '';
    }
}
?>
</head>
<body>
	<div id="body_container">
		<?php 
if (intval($_GET['age']) > 0) {
    ?>
		<div id="breadbrum">
			<a href="/" target="_blank"><div id="log"></div></a>
			<a href="/assistant/_index.php">助手首页</a> &gt;&gt; <?php 
    echo convert_age($_GET['age']);
    ?>
		</div>
		<?php 
}
?>
		<div id="assistant_top_banner">
				<div id="assistant_top_left_banner">
					<div id="bla_img">
						<?php 
for ($i = 1; $i <= 5; $i++) {
    ?>
						<div class="pic_img"<?php 
    $pos = "assistan_pg_l_{$i}";
    show_page_pos($pos, 'link_i');
    ?>
Пример #4
0
echo $current_cate->name;
?>
</div>
<?php 
foreach ($filter_age as $f_age) {
    $sql = "select * from eb_assistant where is_adopt=1 and category_id = {$current_cate->id} and age = {$f_age} order by priority asc,created_at desc limit 10";
    $assistants = $db->query($sql);
    if (empty($assistants)) {
        continue;
    }
    ?>
<div class="result_banner">
	<div class="result_pg_top">
		<div class="gengduo_d">
		<?php 
    echo convert_age($f_age);
    ?>
		</div>
		<div class="gengduo">
			<a href="list.php?category_id=<?php 
    echo $current_cate->id;
    ?>
&age=<?php 
    echo $f_age;
    ?>
">更多&gt;&gt;</a>
		</div>
	</div>
	<div class="result_pg_content">
		<?php 
    foreach ($assistants as $assistant) {
Пример #5
0
}
?>
</head>
<body>
<input type="hidden" id="user_id" value="<?php 
echo $user->id;
?>
">
<div id="container">
	<div id="container_result" style="overflow: hidden;">
		<div id="breadbrum">
				<a href="/" target="_blank"><div id="log"></div></a>
				<a href="/assistant/_index.php">助手首页</a> &gt;&gt; <a href="_knowledge.php">知识专题</a>
				<?php 
if ($age && in_array($age, array(-2, -1, 1, 2, 3, 4))) {
    echo ">> ", convert_age($age);
}
?>
			</div>
		<div class='menu' <?php 
if ($age && $age != -2) {
    ?>
style="display:none;"<?php 
}
?>
>准备怀孕</div>
		<div class="box" <?php 
if ($age && $age != -2) {
    ?>
style="display:none;"<?php 
}