mobile){ phpalert("请先登陆!"); exit(); } if($WebUsrInfo->refresh>0){ //$WebUsrInfo->refresh--; //echo ""; //exit(); }else $WebUsrInfo->refresh = 0; $arr_select_size=array(8=>8,10=>10,12=>12,14=>14,16=>16,20=>20,24=>24,28=>28,36=>36,48=>48); if($acts=="addtxt" && trim($txt)){ $m_points[txt] = iconv("gb2312","utf-8",trim($txt)); $m_points[font] = $font; $m_points[size] = $size; $m_points[color] = $color; $m_points[angle] = $angle; $p_num = $WebUsrInfo->crop[id]+1; $src_path_file = $WebUsrInfo->src_path_file; $dst_path_file = "./tmp/".$WebUsrInfo->mobile."_src$p_num".".png"; $Image = new ClsImage(array(font_path=>"../inc")); $is_ok = $Image->ImageTTFTextFile($src_path_file,$dst_path_file,$m_points,$pos); if($is_ok) { $WebUsrInfo->src_path_file = $dst_path_file; $WebUsrInfo->crop[src_files][$p_num] = $dst_path_file; $WebUsrInfo->crop[id] = $p_num; //$WebUsrInfo->refresh=2; //phpalert('ok'); gotopage("$PHP_SELF?refresh=1"); exit(); }else phpalert("添加文字失败"); }else if($acts=="cancel"){ $p_num = $WebUsrInfo->crop[id]; unlink($WebUsrInfo->crop[src_files][$p_num]); unset($WebUsrInfo->crop[src_files][$p_num]); $p_num--; $WebUsrInfo->crop[id] = $p_num; $WebUsrInfo->src_path_file = $WebUsrInfo->crop[src_files][$p_num]; gotopage("$PHP_SELF"); exit(); } $rand = rand(); ?> 添加文字
文字内容
字  体 字  号 颜  色
排列方式 相对位置  
crop[id]<=1 ) echo "disabled";?> name="btcancel" type="button" id="btcancel3" value=" 撤 消 " onClick="docancel()">
 
 
" alt="预览">
src_path_file) imginfo($src_path_file);?>

 

 
 
src_path_file); // html_viewArray($WebUsrInfo); ?>