/home/mjc1/public_html/manage/m_customermovie_reg.php


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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
include("./_common.php");
header("Content-type:text/html;charset=utf-8"); 

$sql "set names utf8";
mysql_query($sql,$connect_web);

if(
$idx!=''){
    
$sql "select * from mBoard_movie a where idx = '{$idx}' ";
    
$res mysql_query($sql,$connect_web);
    
$info mysql_fetch_array($res);
}
?>

<form name='movie_reg_form' id='movie_reg_form' method='post' action='m_customermovie_process.php' enctype='multipart/form-data'>
<input type='hidden' name='qstr' value='<?php echo $qstr;?>'>
<input type='hidden' name='idx' value='<?php echo $info['idx'];?>'>

<div class='cust_modal1'>
    <h4>기본정보</h4>
    <table class="order-sheet table-top-border">
        <caption class="screen_out">기본정보</caption>
        <colgroup>
            <col style="width:100px;"><col style="width:200px;">
            <col style="width:100px;"><col style="width:200px;">
        </colgroup>

        <tbody>
        <tr>
            <th>제목</th>
            <td colspan=3><input type='text' name='title' id='title' class='width_500' value='<?php echo $info['title'];?>'></td>
        </tr>
        <tr>
            <th>링크</th>
            <td colspan=3><input type='text' name='link' id='link' class='width_500' value='<?php echo $info['link'];?>'></td>
        </tr>
        <tr>
            <th>첨부파일</th>
            <td colspan=3>
                <INPUT TYPE="file" NAME="thumb"  class='width_100'>
                <?php $filedir "../save_dir/m_movie/";?>
                <?php 
                $conv 
iconv("utf-8","euc-kr",$info['thumb']);
                
                if(
file_exists($filedir.$conv) && $info['thumb']!=''){?>
                    <a href='./m_filedown.php?filedir=<?php echo $filedir;?>&filename=<?php echo $info['thumb']?>' target='_blank'><?php echo $info['thumb'];?></a>
                    &nbsp;<input type='checkbox' name='add_file_del' value='Y'> 삭제
                    <input type='hidden' name='add_file_del_name' value='<?php echo $info['thumb'];?>'>
                <?php }?>
            </td>
        </tr>
        <tr>
            <th>숨김</th>
            <td colspan=3>
                <input type="checkbox" name="hidden" value="<?php echo $info['hidden'];?><?php if($info['hidden'] == "1") { echo "checked"; }?>>
            </td>
        </tr>
    </table>
</div>
</form>