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


PHP Url::Get方法代码示例

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


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

示例1: foreach

<div class="list_top" style="margin-left:55px;margin-bottom:10px">
  <h3><a href="#list_style_2">목록 보기</a></h3>
  <ul class="list_style_2" style="display:none">
<?php foreach ($list as $v) {// 심플리스트
	$category = explode('|',$v['wr_category']);
?>
    <li><a href="<?php echo $v['wr_subject']['href']?>"><?php echo implode('&gt;',$category)?> : <?php echo $v['wr_subject']['text']?>&nbsp;<span class="cnt">(<?php echo $v['cmt_count']?>)</span></a></li>
<?php }?>
  </ul>
</div>

<?php foreach ($list as $v) {
	$imgs = File::Inst()->wr_no($v['wr_no'])->Action('images', 120, 120); // 썸네일 불러오기
	$category = explode('|',$v['wr_category']);
	$link_category = Url::Get(array('ca1'=>$category[0], 'ca2'=>$category[1]));
?>
<span class="blog_date"><?php echo date("n", strtotime($v['wr_datetime']))?>월<br /><?php echo date("j", strtotime($v['wr_datetime']))?>일</span>

<!--Start Blog Div-->
<div class="blog_div">

	<div class="blog_heading">
	<h3><a href="<?php echo $v['wr_subject']['href']?>"><?php echo $v['wr_subject']['text']?></a></h3>
	<p>Posted in <a href="<?php echo $link_category?>" class="category_name"><?php echo implode('-',$category)?></a> by <b><?php echo $v['wr_writer']?></b></p>
	</div><!--End Blog Heading-->

	<p class="blog_comments"><?php echo $v['cmt_count']?></p>
	<br clear="all" />

	<div class="blog_title_border">
开发者ID:nclco,项目名称:magicboard3,代码行数:30,代码来源:list.php

示例2: number_format

  <p class="right">Read <?php echo number_format($v['wr_hit'])?>, Posted in <a href="<?php echo $link_category?>" class="category_name"><?php echo implode('-',$category)?></a> by <b><?php echo $v['wr_writer']?></b></p>
</div><!--End Blog Heading-->
<br clear="all" />

<div class="blog_title_border" style="margin-bottom:20px">
  <?php if(sizeof($file->Action('images', $this->Config('img_width'), false))!=0) { // 첨부이미지 출력 ?>
  <div class="txt_c" style="margin-bottom:20px"><?php foreach ($file->Action('images', $this->Config('img_width'), false) as $vv) {?>
  <div style="margin-bottom:5px"><img src="<?php echo $vv['link']?>" width="<?php echo $vv['width']?>" height="<?php echo $vv['height']?>"/></div>
  <?php }?></div>
  <?php }?>
  <div style="text-align:right; font-size:11px;margin-bottom:10px"><?php echo 'http://'.$_SERVER['HTTP_HOST'].urldecode(Url::Get());?> <a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].Url::Get()?>" class="copy">주소복사</a></div>
  <div style="min-height:300px;padding-bottom:20px"><?php echo $v['wr_content']?></div>
<?php if($this->tags){?>
  <div class="tags"><strong>태그(Tags)</strong> :
<?php foreach($this->tags as $vv) { ?>
    <a href="<?php echo Url::Get(array('tag'=>$vv),array('ca1','ca2','wr_no','pg'))?>"><?php echo $vv?></a>&nbsp;
<?php }?>
  </div>
<?php }?>
  <div><?php echo $comments?></div>
  <div style="text-align:right"><?php include $this->path_view('buttons.php')?></div>
</div><!--End Blog Title Border-->          

<div class="list_top" style="margin-bottom:10px">
  <h3>카테고리 다른글&raquo;</h3>
  <ul class="list_style_2">
<?php foreach ($this->sql('view_list_category', $category[0], $category[1]) as $vv) {// 심플리스트
	$category2 = explode('|',$vv['wr_category']);
?>
    <li class="<?php echo $vv['active']?'active':''?>"><a href="<?php echo $vv['wr_subject']['href']?>"><?php echo implode('&gt;',$category2)?> : <?php echo $vv['wr_subject']['text']?>&nbsp;<span class="cnt">(<?php echo $vv['cmt_count']?>)</span></a></li>
<?php }?>
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:view.php

示例3: foreach

	if($clear['wr_password']!=$_POST['wr_password_check'])
		Dialog::alert('[비밀번호/비밀번호확인]이 일치하지 않습니다.');
	if(!$clear['wr_password'])
		Dialog::alert('비밀번호를 입력해 주세요.');
	$clear['wr_password'] = $this->Sql('password', $clear['wr_password']);
} else {
	$clear['wr_writer'] = Member::Inst()->mb_nick;
}

// 최근게시글을 위해 게시글이 출력되는 아이디를 저장함
$clear['last_id'] = GV::String('id');

if(!$clear['wr_subject'])	 Dialog::alert('제목을 입력해 주세요.');
if(!$clear['wr_content'])	 Dialog::alert('내용을 입력해 주세요.');
if(!$clear['wr_writer'])	 Dialog::alert('글쓴이를 입력해 주세요.');
if($board->bo_use_category) if(!$clear['wr_category']) Dialog::alert('분류를 선택하세요.');

// 업데이트 날짜
$data['wr_update'] = 'NOW()';

DB::Get()->update($tbn, $clear, ' WHERE wr_no='.$key);
// 파일 업로드
File::Inst()->Action('upload', $key);
$del_files = $_POST[File::Inst()->Config('form_name', 'del')];
if(!is_array($del_files)) $del_files = array();
foreach ($del_files as $v) {
	File::Inst()->Action('delete', $v);
}

Dialog::alertNReplace("게시글 수정을 완료 하였습니다.", Url::Get('',$this->Mode('name')));
开发者ID:nclco,项目名称:magicboard3,代码行数:30,代码来源:init.update.php

示例4: array

// 세션이 끊어 졌을때만 다시 업데이트 함
if(!$_SESSION[$this->Config('hit_check').$key]) {
	$this->Sql('update_hit',$key);
	$_SESSION[$this->Config('hit_check').$key] = true;
}
$data = $this->Sql('fetch', $key);
$data['wr_content'] = Editor::Inst(Board::Inst()->bo_no($this->bo_no)->bo_editor)->db_out($data['wr_content']);

$this->sql['fetch'.$key] = $data;

// 태그 가져오기
$tags = array();
foreach(Tag::Inst()->Sql('list', $this->bo_no, $key) as $v) {
  $tags[] = array(
    'name'=>$v['tag_name'],
    'link'=>Url::Get(array('tag'=>$v['tag_name']),array('ca1','ca2','wr_no','pg'))
  );
}
$this->tags = $tags;

// 홈페이지 타이틀 설정
$title = array_merge(
  array($data['wr_subject']),
  array($data['wr_category']),
  PageElement::Inst('head')->Config('title')
);

PageElement::Inst('head')->SetConfig('title', '', $title);

// meta description
// descripttion은 과하지 않는것이 좋다.
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.view.php

示例5: array

$clear['wr_update'] = 'NOW()';

// 분류
if($_POST['ca1']) $clear['wr_category'][] = $_POST['ca1']; 
if($_POST['ca2']) $clear['wr_category'][] = $_POST['ca2']; 
if(is_array($clear['wr_category'])) $clear['wr_category'] = implode('|',$clear['wr_category']); 

$clear['wr_state'] = 0;
if($_POST['opt_notice']) {
	$clear['wr_state'] = $clear['wr_state']|$this->Config('state', 'notice');
}

DB::Get()->update($tbn, $clear, ' WHERE wr_no='.$key, array('wr_update'));

// 태그 입력
$tags = $_POST['tags'];
Tag::Inst()->Action('insert', $bo_no, $key, array_unique(array_filter(explode(',', $tags))));

// 파일 업로드
File::Inst()->Action('upload', $key);
$del_files = $_POST[File::Inst()->Config('form_name', 'del')];
if(!is_array($del_files)) $del_files = array();
foreach ($del_files as $v) {
	File::Inst()->Action('delete', $v);
}

Url::GoReplace(Url::Get('',$this->Mode('name')));



开发者ID:nclco,项目名称:magicboard3,代码行数:27,代码来源:init.update.php

示例6: array

    $start = $end - $nWidth + 1;
    $end = $pages < $end ? $pages : $end;
    for ($i = $start; $i <= $end; $i++) {
        $class = 'number';
        if ($i == $key) {
            $class .= ' hover';
        }
        if ($i == 1) {
            $link = Url::Get('', $kn);
        } else {
            $link = Url::Get(array($kn => $i));
        }
        $list[] = array('name' => $i, 'class' => $class, 'link' => $link);
    }
    /*
     * 다음링크 생성
     */
    $link = '';
    if ($pages > $key) {
        $link = Url::Get(array($kn => $key + 1));
    } else {
        $link = Url::Get('', $kn);
    }
    $list[] = array('name' => '다음', 'class' => '', 'img' => $this->path_img('paging_next.gif'), 'link' => $link);
    /*
     * 마지막링크 생성
     */
    //if($pages>($key+1)) { }
    $list[] = array('name' => '마지막', 'class' => '', 'img' => $this->path_img('paging_last.gif'), 'link' => Url::Get(array($kn => $pages)));
}
$this->list = $list;
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.php

示例7:

<?php

if (!defined('__MAGIC__')) {
    exit;
}
include_once $this->path_view('top.php');
?>

<!-- 비밀번호확인 -->
<form method="post" action="<?php 
echo Url::Get('', GV::check);
?>
">
<table class="basic_table">
<thead>
<tr><th>비밀번호 확인</th></tr>
</thead>
<tbody>
<tr>
<td>
<input type="password" name="<?php 
echo GV::password;
?>
"/>
<input type="image" src="<?php 
echo $this->path_img('btn_ok.gif');
?>
" alt="확인"/>
</td>
</tr>
</tbody>
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:password.php

示例8: array

<?php

if (!defined("__MAGIC__")) {
    exit;
}
$cfg = array();
$cfg['design_mode'] = 'widget';
$cfg['page_mode'] = 'page_edit';
$cfg['is_design'] = GV::String($cfg['design_mode']);
$cfg['link_design'] = Url::Get(array($cfg['design_mode'] => 'true'), array($cfg['page_mode']));
if ($cfg['is_design']) {
    $cfg['link_design'] = Url::Get('', array($cfg['design_mode'], $cfg['page_mode']));
}
$cfg['is_page'] = GV::String($cfg['page_mode']);
$cfg['link_page'] = Url::Get(array($cfg['page_mode'] => 'true'), array($cfg['design_mode']));
if ($cfg['is_page']) {
    $cfg['link_page'] = Url::Get('', array($cfg['page_mode'], $cfg['design_mode']));
}
$cfg['mode']['name'] = 'wgMode';
// widget add info
$cfg['add_widget'] = array('table' => 'wgaif_table', 'field' => 'wgaif_field', 'key' => 'wgaif_key', 'key_name' => 'wgaif_kn', 'pos' => 'wgaif_pos');
// 현재 로그인한 회원정보 저장
$m = Member::Inst();
$cfg['mb'] = array('no' => $m->mb_no, 'name' => $m->mb_name, 'admin' => $m->Action('is_admin'), 'login' => $m->Action('is_login'), 'level' => $m->mb_level);
开发者ID:nclco,项目名称:magicboard3,代码行数:24,代码来源:config.php

示例9: foreach

#side_tags a.tag_cnt_9,
#side_tags a.tag_cnt_max
{ color:#fff; font-size:16px; font-weight:bold; background-color:#4b5608 }
</style>

<div id="side_tags">
<?php 
foreach ($list as $v) {
    if ($v['cnt'] <= $this->Config('hide_count')) {
        continue;
    }
    ?>
  <a class="tag_cnt_<?php 
    echo $v['cnt'] > 10 ? 'max' : $v['cnt'];
    ?>
" href="<?php 
    echo Url::Get(array('tag' => $v['tag_name']), array('ca1', 'ca2', 'wr_no', 'writeMode', 'pg'));
    ?>
"><?php 
    echo $v['tag_name'];
    ?>
</a>
<?php 
}
?>
<br clear="all" />
</div>



开发者ID:nclco,项目名称:magicboard3,代码行数:27,代码来源:view.php

示例10: array

    	for($i=$start; $i<=$end; $i++) {
    		$class='';
    		if($i==$key) $class='hover';
    		if($i==1) $link = Url::Get('',$kn);
    		else $link = Url::Get(array($kn=>$i));
    		$list[] = array(
    			'name'=>$i,
    			'class'=>$class,
    			'link'=>$link
    		);
    	}
    */
    /*
     * 다음링크 생성
     */
    $link = '';
    if ($pages > $key) {
        $link = Url::Get(array($kn => $key + 1));
        $list[] = array('name' => '다음', 'class' => '', 'link' => $link);
    }
    /*
    * 마지막링크 생성
    	//if($pages>($key+1)) { }
    	$list[] = array(
    		'name'=>'마지막',
    		'class'=>'',
    		'link'=>Url::Get(array($kn=>$pages))
    	);
    */
}
$this->list = $list;
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:init.view.php

示例11: intval

$rows = $this->Config('rows');
$page = GV::Page() ? GV::Page() : 1;
$tot = $this->Sql('list_cnt');
$from = (intval($page) - 1) * intval($rows) + 1;
$to = $from + $rows - 1;
if ($tot < $to) {
    $to = $tot;
}
$link_prev = '';
$link_next = '';
if ($tot > $rows) {
    if ($page > 1) {
        $link_prev = Url::Get(array('page' => $page - 1));
    }
    if ($to < $tot) {
        $link_next = Url::Get(array('page' => $page + 1));
    }
}
if ($this->CurrentState() != 'view' && $tot > $rows) {
    echo $tot;
    ?>
개 중 <?php 
    echo $from;
    ?>
-<?php 
    echo $to;
    ?>
&nbsp;
<button <?php 
    echo $link_prev ? '' : 'disabled="disabled"';
    ?>
开发者ID:nclco,项目名称:magicboard3,代码行数:31,代码来源:paging.php

示例12: Link

 public function Link($name)
 {
     $att = func_get_args();
     include $this->path_controller('link.php');
     if (!$link[$name]) {
         return false;
     }
     return Url::Get($link[$name]['include'], $link[$name]['exclude'], $link[$name]['path']);
 }
开发者ID:nclco,项目名称:magicboard3,代码行数:9,代码来源:Module.class.php

示例13: foreach

  </div><!-- .blog_right_links -->

  <h2>최근 댓글</h2>
  <div class="blog_right_links">
    <ul>
<?php foreach($comment as $v) {?>
      <li><a href="<?php echo Url::Get(array('wr_no'=>$v['wr_no']))?>"><?php echo strcut_utf8(strip_tags($v['cmt_content']), 50)?></a>
<?php }?>
    </ul>
  </div><!-- .blog_right_links -->

  <h2>최신글</h2>
  <div class="blog_right_links">
<?php echo $latest?>
  </div><!-- .blog_right_links -->

  <h2>태그구름</h2>
  <div class="blog_right_links"><?php echo $tags?></div><!-- .blog_right_links -->

  <h2>게시글 저장소</h2>
  <div class="blog_right_links">
    <ul>
<?php foreach($archive as $k=>$v) {?>
      <li><a href="<?php echo Url::Get(array('archive'=>$k))?>"><?php echo $k?> <span class="cnt">(<?php echo $v?>)</span></a></li>
<?php }?>
    </ul>
  </div><!-- .blog_right_links -->

</div><!-- #blog_right_panel -->
<br clear="all" />
开发者ID:nclco,项目名称:magicboard3,代码行数:30,代码来源:side.php

示例14:

<!--Start Blogs Container Blogs Container Top-->
<div id="blogs_container_top">
<!--Start Blogs Container Blogs Container Bottom-->
<div id="blogs_container_bottom">

<div style="float:right;margin-right:20px"><?php include $this->path_view('buttons.php');?></div>

<!--Start Breadcrumb-->
<?php echo $breadcrumb?>
<!--End Breadcrumb-->

<!--Start Blog Content-->
<div id="blog_content">

<div class="tag_cloud" style="margin-left:55px;margin-bottom:10px">
  <h1 style="margin-bottom:10px">태그구름</h1>
  <p style="margin-bottom:20px">사용된 모든 태그들을 보여줍니다.</p>
  <div><?php echo $tags?></div>
  <div><a class="button" href="<?php echo Url::Get('',array($this->Config('mode','name'),'ca1','ca2','tag','wr_no'))?>">목록으로 가기</a></div>
</div>

</div><!--End Blog Content-->

<?php include $this->path_view('side.php')?>

</div><!--End Blogs Container Bottom-->
</div><!--End Blogs Container Top-->
</div><!--End Blogs Container-->
</div><!--End Container 5-->

开发者ID:nclco,项目名称:magicboard3,代码行数:29,代码来源:tagcloud.php

示例15:

<?php

if (!defined("__MAGIC__")) {
    exit;
}
$tbn = $this->TBN();
// 테이블명
$clear = $this->Clear();
$r = GV::String('r');
$id1 = GV::String('id1');
$id2 = GV::String('id2');
$clear['bo_admin_path'] = Url::Get(array('r' => $r, 'id1' => $id1, 'id2' => $id2, 'bo_no' => $clear['bo_no'], $this->Mode('name') => 'write'));
$this->Action('insert_record', $clear);
Dialog::Alert("게시판 추가 완료!", $this->Link('list'));
开发者ID:nclco,项目名称:magicboard3,代码行数:14,代码来源:init.insert.php


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