當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。