查看文件: profiledoc.php
大小: 9.65 KB
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); ?> <?php if (!isset($_SESSION)){ session_start(); } //if(!file_exists($logo_img)){ include "user_logo.php"; } $colname_Rt2 = "-1"; if (isset($_GET['id'])) { $colname_Rt2 = $_GET['id']; } //update `member` set company_title=mem_name WHERE mem_auto>10 and mem_auto<26 mysql_select_db($database_BE2, $BE2); $query_Rt2 = sprintf("SELECT a.*,b.scode as bscode,b.mem_name as pname FROM member as a left join member as b on a.mem_num=b.mem_auto WHERE a.scode = '%s'",$colname_Rt2 ); $Rt2 = mysql_query($query_Rt2, $BE2) or die(mysql_error()); $row_Rt2 = mysql_fetch_assoc($Rt2); $totalRows_Rt2 = mysql_num_rows($Rt2); $logo_img='/www2/skybni/logo_img/'.sprintf('%07d',$row_Rt2['mem_auto']).".png"; ?> <div class="main "> <div class="row"> <div class="col-sm-6"> <div class="panel panel-default"> <div class="panel-heading"> <h2><i class="fa fa-indent red"></i><strong>修改個人資料</strong></h2> </div> <div class="panel-body"> <h3><font color="blue"><a href="/ecard/<?= $row_Rt2['scode'] ; ?>" target="_blank">我的推薦 ID : <?= $row_Rt2['scode'] ; ?> </a></font></h3> <div class="form-group"> <label class="col-md-3 control-label" for="passwd1">登入帳號(手機號):</label> <div class="col-md-9"> <input name="mem_mobile" type="text" value="<?= $row_Rt2['mem_mobile'] ; ?>" class="form-control" readonly="readonly" /> <input name="mem_code" type="hidden" value="<?= $row_Rt2['mem_code'] ; ?>" /> <span class="help-block"> </span> </div> </div> <div class="form-group"> <label class="col-md-3 control-label" for="passwd1">姓名:</label> <div class="col-md-9"> <input type="text" name="mem_name" id="mem_name" value="<?=$row_Rt2['mem_name']; ?>" class="form-control" /> <span class="help-block"> </span> </div> </div> <div class="form-group"> <label class="col-md-3 control-label" for="passwd1">E_mail:</label> <div class="col-md-9"> <input type="text" name="mem_mail" value="<?= $row_Rt2['mem_mail'] ?>" class="form-control" /> <span class="help-block"> </span> </div> </div> <div class="form-group"> <label class="col-md-3 control-label" for="passwd1"><?= $row_Rt2['mem_num']<1?"推薦碼ID":"推薦碼" ?>:</label> <div class="col-md-9"> <input name="mem_num" id="mem_num" type="hidden" value="<?= $row_Rt2['mem_num'] ; ?>"/> <input name="pname" id="pname" type="text" value="<?= ($row_Rt2['mem_num']<1)?"":$row_Rt2['bscode'] ; ?>" class="form-control" <?= $row_Rt2['mem_num']<2?'placeholder="請輸入介紹人ID"':' readonly="readonly"' ?> required/> <input name="mem_logo" id="mem_logo" type="hidden" value="<?= $row_Rt2['mem_logo'] ; ?>" /> <span class="help-block"><?= $row_Rt2['mem_num']<2?'請輸入':"" ?>介紹人ID </span> </div> </div> <div class="form-group"> <div class="col-md-9"> <span class="help-block"></span> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="m_bankname">匯款戶名:</label> <div class="col-md-8"> <input name="m_bankname" type="text" id="m_bankname" value="<?= $row_Rt2['m_bankname'] ; ?>" size="28" readonly="readonly" /> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="m_bankname">匯款銀行:</label> <div class="col-md-8"> <input name="m_bank" type="text" id="m_bankname" value="<?= $row_Rt2['m_bank'] ; ?>" size="28" readonly="readonly" /> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="m_bankname">匯款銀行代碼:</label> <div class="col-md-8"> <input name="m_bank2" type="text" id="m_bankname" value="<?= $row_Rt2['m_bank2'] ; ?>" size="28" readonly="readonly" /> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="m_bankcode">匯款帳號:</label> <div class="col-md-8"> <input name="m_bankcode" type="text" id="m_bankcode" value="<?= $row_Rt2['m_bankcode'] ; ?>" size="28" readonly="readonly" /> <br> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="fileToUpload1">負責人身份証正面:</label> <div class="col-md-8"><span class="help-block"></span> <input type="hidden" id="m_pic1" name="m_pic1" value="<?= $row_Rt2['m_pic1'] ; ?>" /> </div> <div class="col-md-12"> <? if($row_Rt2['m_pic1']<>''){ ?><img src="/shopmap/images/userimg_<?= $row_Rt2['mem_auto'].'_'.$row_Rt2['m_pic1'] ?>.jpg" width="200px" /><? }?> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="fileToUpload2">負責人身份証反面:</label> <div class="col-md-8"><span class="help-block"></span> <input type="hidden" id="m_pic2" name="m_pic2" value="<?= $row_Rt2['m_pic2'] ; ?>" /> </div> <div class="col-md-12"> <? if($row_Rt2['m_pic2']<>''){ ?> <img src="/shopmap/images/userimg_<?= $row_Rt2['mem_auto'].'_'.$row_Rt2['m_pic2'] ?>.jpg" width="200px" /><? }?> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="fileToUpload4">匯款存摺封面照片:</label> <div class="col-md-8"><span class="help-block"></span> <input type="hidden" id="m_pic4" name="m_pic4" value="<?= $row_Rt2['m_pic4'] ; ?>" /> </div> <div class="col-md-12"> <? if($row_Rt2['m_pic4']<>''){ ?> <img src="/shopmap/images/userimg_<?= $row_Rt2['mem_auto'].'_'.$row_Rt2['m_pic4'] ?>.jpg" width="200px" /><? }?> </div> </div> <div class="form-group form-actions"> </div> </div> </div> </div> <!--/row--> </div> <!-- end: Content --> <br><br><br> </div> <script type="text/javascript"> function found_pmem() { var pname=$('#pname').val(); $.ajax({ method: "POST", url: "ajax_found_mynum.php", //data: $('#yourformid').serialize(), data: {'pname': pname} }).done(function( data ) { response = JSON.parse(data); $('#pname').val(response.name); $('#mem_num').val(response.id); if(response.id>1){ alert('找到推薦人..');} else{ alert('找不到推薦人..'); } }); return false; }; function make_logo(i){ var title=$('#company_title').val(); alert(title); $.ajax({ method: "POST", url: "ajax_make_logo.php", //data: $('#yourformid').serialize(), data: {id: i} }).done(function( data ) { if(data!="ERR"){ $('#mylogo').html('<img name="logo" src="/logo_img/'+data +'" alt="1" />'); } // $('#mylogo').html(data); }); return false; } </script> <!-- end: Content --> <?php mysql_free_result($Rt2); ?>
保存
取消
返回文件列表