HEX
Server: Apache/2.4.57 (Debian)
System: Linux 8ea768a960b0 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64
User: www-data (33)
PHP: 8.2.18
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/wujin/basic/form.php
<!--询盘弹窗-->
<style>
/*.showbtn{display:inline-block;padding:10px 30px;background:#000;color:#fff !important;cursor:pointer;}*/
.tjdiv{display:none;position:fixed;z-index:999;top:10%;left:calc(50% - 210px);width:420px;background:#fff;max-width:100%;padding:20px;box-sizing:border-box;border:1px solid #ddd;border-radius:10px;box-shadow: 0px 2px 10px 0px rgb(0 0 0 / 10%);}
.tjdiv .items{padding:5px 0;}
.tjdiv .items span{display:block;margin-bottom:5px;}
.tjdiv input{width:100%;box-sizing: border-box;background:#fff;padding:10px;border:1px solid #ddd;border-radius:0px}
.tjdiv textarea{width:100%;background:#fff;padding:10px;border:1px solid #ddd;border-radius:0px;min-height:100px;}
#tjbtnn{width:40%;text-align:center;background:#000;color:#fff;border-radius:0px;display:block;cursor:pointer;}
.xss{position:absolute;top:10px;right:10px;font-size:13px;cursor:pointer;}
@media screen and (max-width: 768px){
.tjdiv {left: 0;}
}
</style>
<div class="tjdiv">
<span class="xss">x</span>
<form action="<?php echo $_SERVER['REQUEST_URI']; $current_user = wp_get_current_user(); ?>" method="post">
<?php $module=mt_rand(100000,999999);?>
<input type='hidden' name='module' value='<?php echo $module;?>'/>
<input type='hidden' name='timestamp' value='<?php echo time();?>'/>
<input type='hidden' name='token' value='<?php echo md5($module.'#$@%!^*%*ty'.time());?>'/>
<input type='hidden' value='<?php echo home_url();?>' name='tougao_form' />
<div class="items">
<span>标题:</span><input type="text" name="tougao_title" value="咨询:<?php the_title(); ?>"/>
</div>
<div class="items">
<span>姓名:</span><input type="text" name="tougao_authorname" />
</div>
<div class="items">
<span>电话:</span><input type="text" name="tougao_tell" />
</div>
<div class="items">
<span>邮箱:</span><input type="text" name="tougao_authoremail" />
</div>
<div class="items">
<span>留言:</span><textarea name="tougao_content" ></textarea>
</div>
<div class="items">
<input type="submit" value="提交" id="tjbtnn"/>
</div>
</form>
</div>
<script>
$(".showbtn").click(
function(){
$(".tjdiv").fadeIn();
});
$(".xss").click(
function(){
$(".tjdiv").fadeOut();
});
</script>