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


PHP general::link_to方法代码示例

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


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

示例1:

echo general::date_from_database($obj->date_news);
?>
" class="validate[required] text_1" name="FORM[date_news]" id="datepicker" style="width: 20%;">			
	    </div>	
		
        <div class="item_1">
    		<label for="status" class="block title_1">Публиковать?:</label>
			<input name="FORM[status]" type="checkbox" <?php 
echo $obj->status == 1 ? checked : '';
?>
 id="status">
    	</div>
		
        <div class="item_1 textcenter">
			<?php 
echo general::link_to($tpl_folder . '/index', 'Вернуться к общему списку');
?>
			<input type="submit" name="submit" value="Сохранить">        	
        </div>
        
    </div>	
    
	<input name="id" type="hidden" value="<?php 
echo $obj->id;
?>
">        
    
	</form>    
	
	<script type="text/javascript">
	$(document).ready(function(){
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:31,代码来源:new.php

示例2:

			<div class="item_1">
				<label for="status" class="block title_1">Публиковать?:</label>
				<input name="FORM[status]" type="checkbox" id="status" <?php 
    echo $obj->status == 1 ? checked : '';
    ?>
>
    	    </div>
			
			<input type="hidden" name="id" value="<?php 
    echo $obj->id;
    ?>
" />
			
			<div class="item_1 textcenter">
				<?php 
    echo general::link_to('voting/index', 'Вернуться к общему списку');
    ?>
				<input type="submit" name="submit" value="Сохранить">        	
			</div>
		
		</div>
		
		<?php 
}
?>
	
	</form>
	
	<script type="text/javascript">
		$(document).ready(function(){
			<!-- colorbox -->
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:31,代码来源:edit_question.php

示例3: debug

	<?php 
if (SUPER_ADMIN == 1) {
    ?>
	<?php 
    if ($_SESSION['user_backend'] == 'superadmin') {
        ?>
		<div align="center"><?php 
        echo general::link_to('index/access/user_backend/admin', 'Войти под админом?');
        ?>
</div>
	<?php 
    } else {
        ?>
		<div align="center"><?php 
        echo general::link_to('index/access/user_backend/superadmin', 'Войти под суперадмином?');
        ?>
</div>
	<?php 
    }
    ?>
    <?php 
}
?>
	<div align="center" style="marging: 0 auto;">
	<?php 
DEBUG_ADMIN == 1 ? debug() : '';
?>
	</div>

</div>
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:30,代码来源:index.php

示例4: confirm

        ?>
							<span style="color:red;">Нет</span>
						<?php 
    }
    ?>
					
					</span>
					<span class="ps_coll"><?php 
    echo general::link_to($tpl_folder . '/new/id/' . $obj->id, 'Редактировать');
    ?>
</span>
					<span class="ps_coll"><?php 
    if (dbh::catalog_tree_count_child($obj->id) == 0 and dbh::catalog_count_child($obj->id) == 0) {
        ?>
					<?php 
        echo general::link_to($tpl_folder . '/delete/id/' . $obj->id, 'Удалить?', 'onclick="return confirm(\'Вы уверены?\')"');
        ?>
					<?php 
    }
    ?>
</span>
					
				</span>
                <span class="name"><?php 
    echo $level . $obj->pole;
    ?>
</span>
            </span>
			
			<?php 
    echo dbh::catalog_tree_count_child($obj->id) > 0 ? '<ul>' : '';
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:31,代码来源:menu.php

示例5: foreach

		<?php 
foreach ($result as $obj) {
    ?>
				<?php 
    if ($obj->id_parent) {
        ?>
					<?php 
        echo system::show_tpl(array('result' => dbh::gallery_grupa_get_parent($obj->id_parent)), '/frontend/gallery/bread.php');
        ?>
				<?php 
    }
    ?>
				<?php 
    echo general::link_to('gallery/' . $obj->url, ' ' . $obj->pole);
    ?>
				
		<?php 
}
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:18,代码来源:bread.php

示例6:

    ?>
</td>
		<td><?php 
    echo $obj->created_at ? system::show_data($obj->created_at) : '<span style="color:red;">Нет</span>';
    ?>
</td>
		<td><?php 
    echo $obj->updated_at ? system::show_data($obj->updated_at) : '<span style="color:red;">Нет</span>';
    ?>
</td>
		<td><?php 
    echo $status_order[$obj->status];
    ?>
</td>		
		<td><?php 
    echo general::link_to('orders/new/id/' . $obj->id, 'Редактировать');
    ?>
</td>
	</tr>


<?php 
}
?>

	
</table>


	<script type="text/javascript">
	$(document).ready(function(){
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:31,代码来源:index.php

示例7: foreach

		<?php 
foreach ($result as $obj) {
    ?>
		<?php 
    $_cur = '';
    ?>
			<li>
				<?php 
    if (isset($_GET['grupa']) and $obj->id == intval($_GET['grupa'])) {
        $_cur = 'class="cur"';
    }
    ?>
 
			
				<?php 
    echo general::link_to('catalog/grupa/' . $obj->id . '/brand/0', $level . $obj->pole, $_cur);
    ?>
				
				
				<?php 
    $children = dbh::catalog_tree_get_child($obj->id);
    ?>
			
				<?php 
    if (count($children)) {
        ?>
				
					<ul><?php 
        echo system::show_tpl(array('result' => dbh::catalog_tree_get_child($obj->id), 'level' => $level . ''), '/frontend/catalog/menu_ind.php');
        ?>
</ul>
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:31,代码来源:menu_all.php

示例8:

				
				<input type="text" name="FORM[amount]" class="validate[required] input_1" id="amount" value="<?php 
    echo $obj->amount;
    ?>
" > 
				
			</div>
			
			<input type="hidden" name="id" value="<?php 
    echo $obj->id;
    ?>
" />
			
			<div class="item_1 textcenter">
				<?php 
    echo general::link_to('voting/question', 'Вернуться к общему списку');
    ?>
				<input type="submit" name="submit" value="Сохранить">        	
			</div>
		
		</div>
		
		<?php 
}
?>
	
	</form>
	
	<script type="text/javascript">
		$(document).ready(function(){
			<!-- colorbox -->
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:30,代码来源:edit_answer.php

示例9: confirm

    echo dbh::content_count_child($obj->id) == 0 ? general::link_to($tpl_folder . '/delete/id/' . $obj->id . '/tablename/' . $_GET['tablename'], 'Удалить?', 'onclick="return confirm(\'Вы уверены?\')"') : '';
    ?>
</td>
		<td><?php 
    echo $obj->pole;
    ?>
</td>
		<td><a href="#" data-id="<?php 
    echo $obj->id;
    ?>
" class="setStatus"><?php 
    echo $obj->status == 1 ? '<span style="color:#39C;">Да</span>' : '<span style="color:red;">Нет</span>';
    ?>
</a></td>		
		<td><?php 
    echo general::link_to($tpl_folder . '/new/id/' . $obj->id . '/tablename/' . $_GET['tablename'], 'Редактировать');
    ?>
</td>
	</tr>



<?php 
}
?>

</table>

<script type="text/javascript">
	  	// When the document is ready set up our sortable with it's inherant function(s)
	  	$(function() {
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:31,代码来源:index.php

示例10: confirm

	
	<tr>
		<td><?php 
    echo general::link_to('voting/deletea/id/' . $obj->id, 'Удалить?', 'onclick="return confirm(\'Вы уверены?\')"');
    ?>
</td>
		<td><?php 
    echo $obj->answer;
    ?>
</td>
        <td><?php 
    echo $obj->q;
    ?>
</td>
		<td><?php 
    echo $obj->amount;
    ?>
</td>
		<td><?php 
    echo general::link_to('voting/edita/id/' . $obj->id, 'Редактировать');
    ?>
</td>
	</tr>


<?php 
}
?>

	
</table>
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:30,代码来源:answer.php

示例11: foreach

	

<table class="table1" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th>Покупатель</th>
		<th>Кол-во покупок</th>
		<th>Сумма покупок</th>		
	</tR>

<?php 
foreach ($result as $obj) {
    ?>
	
	<tr>
		<td><?php 
    echo general::link_to('users/new/id/' . $obj->id_user, registration::get_User_By_Id($obj->id_user)->name . ' [' . registration::get_User_By_Id($obj->id_user)->id . ']', 'target="_blank"');
    ?>
</td>
		<td><?php 
    echo $obj->count;
    ?>
		&nbsp;
		<div style="float:right;" id="info<?php 
    echo $obj->id_user;
    ?>
"><a href="#" class="detail" id="<?php 
    echo $obj->id_user;
    ?>
">Список покупок</a></div>
		</td>
		<td><?php 
开发者ID:AngelWayfarer,项目名称:prizvanie,代码行数:29,代码来源:stat_users.php


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