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


PHP View::getRenderEmpty方法代码示例

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


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

示例1: Report

    public static function Report()
    {
        $sql = 'SELECT * FROM {{orders}} WHERE loyalty=1 AND sent=0';
        $list = DB::getAll($sql);
        foreach ($list as $order) {
            $sql = '
				SELECT * FROM {{orders_items}}
				WHERE orders=' . $order['id'] . '
			';
            $items = DB::getAll($sql);
            $data = $order;
            foreach ($items as $item) {
                $temp = Tree::getInfo($item['tree']);
                if ($temp['path'] != 'catalogopt') {
                    $data['list'][] = Catalog::getOne($item['tree']);
                }
            }
            $text = View::getRenderEmpty('email/report', $data);
            $mail = new Email();
            $mail->Text($text);
            $mail->Subject('Оставьте отзыв о товаре на сайте www.' . str_replace('www.', '', $_SERVER["HTTP_HOST"]));
            $mail->From('robot@' . str_replace('www.', '', $_SERVER["HTTP_HOST"]));
            $mail->To($order['email']);
            $mail->Send();
            $sql = '
				UPDATE {{orders}}
				SET	sent=1
				WHERE id=' . $order['id'] . '
			';
            DB::exec($sql);
        }
    }
开发者ID:sov-20-07,项目名称:billing,代码行数:32,代码来源:CronModel.php

示例2: addMessage

    public static function addMessage($touser, $message)
    {
        $sql = '
			INSERT INTO {{messages}}
			SET 
				fromuser=' . $_SESSION['iuser']['id'] . ',
				touser=' . $touser . ',
				message=\'' . $message . '\',
				cdate=NOW()
		';
        DB::exec($sql);
        $sql = 'SELECT CONCAT(fname,\' \',lname) AS name, email FROM {{iusers}} WHERE id=' . $touser . '';
        $row = DB::getRow($sql);
        $toname = $row['name'];
        $email = $row['email'];
        if (trim($toname) == '') {
            $toname = 'Неизвестный';
        }
        $text = '
			Здравствуйте, ' . $toname . '!<br /><br />
			' . $_SESSION['iuser']['name'] . ' написал Вам новое сообщение на сайте <a href="http://' . $_SERVER['HTTP_HOST'] . '">' . $_SERVER['HTTP_HOST'] . '</a>.<br /><br />
		';
        $text = View::getRenderEmpty('email/simple', array('text' => $text, 'title' => 'Новое сообщение'));
        $mail = new Email();
        $mail->To($email);
        $mail->Subject('Новое сообщение от ' . $_SESSION['iuser']['name'] . ' на сайте ' . $_SERVER['HTTP_HOST']);
        $mail->Text($text);
        $mail->Send();
    }
开发者ID:sov-20-07,项目名称:billing,代码行数:29,代码来源:MessageModel.php

示例3: ajax

 function ajax()
 {
     $data = array();
     $sql = 'SELECT * FROM {{tree}} WHERE parent=' . $_POST['id'] . ' ORDER BY num';
     $list = DB::getAll($sql);
     foreach ($list as $item) {
         $sql = 'SELECT COUNT(*) FROM {{tree}} WHERE parent=' . $item['id'] . '';
         $count = DB::getOne($sql);
         if ($count > 0) {
             $item['inner'] = 'inner';
         }
         $data[] = $item;
     }
     print View::getRenderEmpty('tree/branch', array('sub' => $data));
     die;
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:16,代码来源:TreeWidget.php

示例4: payment

 function payment()
 {
     DB::escapePost();
     //print '<pre>';print_r($_POST);print '</pre>';
     if ($_POST) {
         $token = Api::getToken();
         if ($_POST['token'] == $token) {
             Api::payment();
             print View::getRenderEmpty('api/payment');
         } else {
             print json_encode(array('error' => 'Wrong token'));
         }
     } else {
         print json_encode(array('error' => 'Post empty'));
         //$this->redirect(Funcs::$conf['settings']['source']);
     }
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:17,代码来源:ApiController.php

示例5: OneSSA

 public static function OneSSA()
 {
     if (Funcs::$prop['panel'] == 0) {
         if ($_SESSION['user']) {
             print View::getRenderEmpty('../' . ONESSA_DIR . '/views/onessa/panel');
         }
     } else {
         unset($_SESSION['user']['panel']['edit']);
     }
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:10,代码来源:Funcs.php

示例6: array

" <?php 
    if (in_array($item['id'], $user['access']['tree'])) {
        ?>
checked<?php 
    }
    ?>
><span class="form_label_text"><?php 
    echo $item['name'];
    ?>
</span>
													</label>
													<?php 
    if (count($item['sub']) > 0) {
        ?>
														<?php 
        echo View::getRenderEmpty('user/labeltree', array('tree' => $item['sub'], 'left' => 1, 'user' => $user));
        ?>
													<?php 
    }
    ?>
												</li>
											<?php 
}
?>
											</ul>
										</td>
									</tr>
								</table>
							</li>
						</ul>
					</div>
开发者ID:sov-20-07,项目名称:billing,代码行数:31,代码来源:adduser.php

示例7: getBasket

 public static function getBasket()
 {
     print View::getRenderEmpty('basket/basketinc', Basket::getOrder());
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:4,代码来源:BasketModel.php

示例8: array

					<input type="checkbox" name="tree[]" value="<?php 
        echo $item['id'];
        ?>
" <?php 
        if (in_array($item['id'], $group['access']['tree'])) {
            ?>
checked<?php 
        }
        ?>
 /><span class="form_label_text"><?php 
        echo $item['name'];
        ?>
</span>
				</label>
				<?php 
        if (count($item['sub']) > 0) {
            ?>
					<?php 
            echo View::getRenderEmpty('user/labeltree', array('tree' => $item['sub'], 'left' => $left + 1, 'group' => $group));
            ?>
				<?php 
        }
        ?>
			</li>
		<?php 
    }
    ?>
	<?php 
}
?>
</ul>
开发者ID:sov-20-07,项目名称:billing,代码行数:31,代码来源:labeltree.php

示例9: phpinfo

 public function phpinfo()
 {
     print View::getRenderEmpty('tools/phpinfo');
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:4,代码来源:ToolsController.php

示例10: delfeaturesgroup

 function delfeaturesgroup()
 {
     Fields::deleteFeaturesGroups();
     print View::getRenderEmpty('fields/groupfeatureslist');
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:5,代码来源:FieldsController.php

示例11: error

 public static function error($sql, $backtrace)
 {
     if (DEBUG == 0 && Funcs::$uri[0] != ONESSA_DIR) {
         header("HTTP/1.0 404 Not Found");
         DB::$error = true;
         View::$layout = 'main';
         View::render('site/error404');
     } elseif (DEBUG != 0 && Funcs::$uri[0] != ONESSA_DIR) {
         header("HTTP/1.0 404 Not Found");
         print View::getRenderEmpty('site/error', array('sql' => $sql, 'backtrace' => $backtrace));
     } else {
         print View::getRenderOneSSAEmpty('site/error', array('sql' => $sql, 'backtrace' => $backtrace));
     }
 }
开发者ID:sov-20-07,项目名称:billing,代码行数:14,代码来源:DBMySQL.php

示例12: foreach

<ul>
	<?php 
foreach ($sub as $item) {
    ?>
		<li>
			<a href="<?php 
    echo $item['path'];
    ?>
"><?php 
    echo $item['name'];
    ?>
 (<?php 
    echo $item['path'];
    ?>
)</a>
			<?php 
    if (count($item['sub']) > 0) {
        ?>
	
				<?php 
        echo View::getRenderEmpty('site/sitemapbranch', array('sub' => $item['sub'], 'i' => $i + 1));
        ?>
			<?php 
    }
    ?>
				
		</li>
	<?php 
}
?>
</ul>
开发者ID:sov-20-07,项目名称:billing,代码行数:31,代码来源:sitemapbranch.php

示例13:

								</table>
							</li>
							<?php 
if ($_GET['tree'] != 'new' && $module['type'] == 'struct') {
    ?>
								<li class="edit_form_section jsMoveFixed jsSlideInfoContainer edit_form_section_other edit_form_section_row">
									<header class="edit_form_section_header">
										<strong><a href="javascript:;" class="jsSlideInfoToggle">Поля характеристик раздела</a></strong>
									</header>
									
									<div class="jsSlideInfoContent">
										<section class="features_section">
											<header class="features_section_header">Группы характеристик:</header> 
											<ul class="features_group_list" id="groupFeatures">
												<?php 
    echo View::getRenderEmpty('fields/groupfeatureslist');
    ?>
											</ul>
											<div class="features_group_add">
												<div class="inline-label">Имя <input class="input_text" type="text" id="groupFeaturesName" /></div>
												<div class="inline-label">Алиас <input class="input_text" type="text" id="groupFeaturesPath" /></div>
												<div class="inline-label">
													<span class="button-white" id="groupFeaturesButton" onclick="addFeaturesGroup(0)">Добавить</span>
													<span class="button-white" id="groupFeaturesCancel" style="display:none;" onclick="cancelFeaturesGroup();">Отменить</span>
												</div>
											</div>
										</section>
										<section class="features_section">
											<header class="features_section_header">Поля характеристик раздела:</header>
											<div class="features_table_layout jsScrollContainer">
												<div class="jsScrollWrapper">
开发者ID:sov-20-07,项目名称:billing,代码行数:31,代码来源:add.php

示例14: foreach

foreach ($tree as $item) {
    ?>
	<?php 
    if ($_GET['id'] != $item['id']) {
        ?>
		<option value="<?php 
        echo $item['id'];
        ?>
" <?php 
        if ($_GET['parent'] == $item['id']) {
            ?>
selected<?php 
        }
        ?>
><?php 
        echo str_repeat('&nbsp;', $left * 3);
        echo $item['name'];
        ?>
</option>
		<?php 
        if (count($item['sub']) > 0) {
            ?>
			<?php 
            echo View::getRenderEmpty('fields/parentbranch', array('tree' => $item['sub'], 'left' => $left + 1));
            ?>
		<?php 
        }
        ?>
	<?php 
    }
}
开发者ID:sov-20-07,项目名称:billing,代码行数:31,代码来源:parentbranch.php

示例15:

    }
    ?>
								<?php 
    if ($item['gal'][0]['path']) {
        ?>
<img src="/of/<?php 
        echo $item['gal'][0]['path'];
        ?>
?h=100&w=100&c=1" /><?php 
    }
    ?>
 
							</span>
						</div>
						<?php 
    echo View::getRenderEmpty('fields/treeselectbranch', $item);
    ?>
					</li>
				<?php 
}
?>
				</ul>
				
			</div>
		</div>
	</div>
</section>

<section class="ltRow">
	<div class="hspopup_buttons">
		<span class="button-white" onclick="sendCheckbox()">Сохранить</span>
开发者ID:sov-20-07,项目名称:billing,代码行数:31,代码来源:treeselect.php


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