1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php $sql = " select * from mBoard_notice WHERE (company = '00' or company = '01') and ifnull(temp,\"\") <>'Y' order by uid desc limit 3"; $result = mysql_query($sql,$connect_web);
while($notice_info=mysql_fetch_array($result)){ $notice_info[subject] = strip_tags($notice_info[subject]); $notice_info['reg_date'] = date("Y-m-d",$notice_info['reg_date']); $notice_info = array_utf8($notice_info); $n_info[] = $notice_info; }
//_pr($n_info);
foreach($n_info as $key=>$info){ ?> <li> <input type='hidden' name='uid[]' value='<?php echo $info['uid']?>'> <a class='notice_li_a'><span class="news" style="width:250px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"><?php echo $info['subject']?></span><span class="date"><?php echo $info['reg_date']?></span></a> </li> <?php } ?> <!--<li><a href="#"><span class="news">온라인수발주에 오신 것을 환영합니다.</span><span class="date">2016-03-07</span></a></li> <li><a href="#"><span class="news">온라인수발주에 오신 것을 환영합니다.</span><span class="date">2016-03-07</span></a></li> <li><a href="#"><span class="news">온라인수발주에 오신 것을 환영합니다.</span><span class="date">2016-03-07</span></a></li>-->
<script> $(function(){ $(".notice_li_a").click(function(){ $li_obj = $(this).closest("li"); $uid = $li_obj.find("input[name='uid[]']").val(); url = "notice.php?uid="+$uid; window.open(url,"notice_win","width=600,height=550,scrollbars=yes"); }); }); </script>
|