浏览代码

修改录入页样式

qiuzijian 1 年之前
父节点
当前提交
94d71b4018
共有 3 个文件被更改,包括 93 次插入27 次删除
  1. 21 11
      include/chajian/inputChajian.php
  2. 50 7
      webmain/css/cssm.css
  3. 22 9
      webmain/flow/input/tpl_input_lum.html

+ 21 - 11
include/chajian/inputChajian.php

@@ -175,7 +175,7 @@ class inputChajian extends Chajian
 		}
 		
 		if($type=='datetime'||$type=='date'||$type=='time'||$type=='month'){
-			$str = '<input onclick="js.datechange(this,\''.$type.'\')" value="'.$val.'" '.$attr.''.$onblue.''.$styles.' class="inputs datesss" inputtype="'.$type.'" readonly name="'.$fname.'">';
+			$str = '<input onclick="js.datechange(this,\''.$type.'\')" value="'.$val.'" '.$attr.''.$onblue.''.$styles.' class="inputs" inputtype="'.$type.'" readonly name="'.$fname.'">';
 		}
 		//数字类型
 		if($type=='number'){
@@ -202,10 +202,11 @@ class inputChajian extends Chajian
 			));
 		}
 		if($type=='selectdatafalse' || $type=='selectdatatrue'){
-			$str 	= '<table width="98%" cellpadding="0" border="0"><tr><td width="100%"><input '.$attr.''.$onblue.''.$styles.' class="inputs" style="width:99%" value="'.$val.'" readonly type="text" name="'.$fname.'"></td>';
-			$str   .= '<td nowrap>';
-			if($isbt=='0')$str   .= '<button onclick="c.selectdataclear(\''.$fname.'\',\''.$data.'\','.$iszb.')" class="webbtn" type="button">x</button>';
-			$str   .= '<button type="button" onclick="c.selectdata(\''.$data.'\','.substr($type,10).',\''.$fname.'\',\''.$fieldname.'\','.$iszb.')" class="webbtn">选</button></td></tr></table>';
+//			$str 	= '<table width="98%" cellpadding="0" border="0"><tr><td width="100%"><input '.$attr.''.$onblue.''.$styles.' class="inputs" style="width:99%" value="'.$val.'" readonly type="text" name="'.$fname.'"></td>';
+//			$str   .= '<td nowrap>';
+//			if($isbt=='0')$str   .= '<button onclick="c.selectdataclear(\''.$fname.'\',\''.$data.'\','.$iszb.')" class="webbtn" type="button">x</button>';
+//			$str   .= '<button type="button" onclick="c.selectdata(\''.$data.'\','.substr($type,10).',\''.$fname.'\',\''.$fieldname.'\','.$iszb.')" class="webbtn">选</button></td></tr></table>';
+            $str 	= '<input '.$attr.''.$onblue.''.$styles.' class="inputs" style="width:99%" value="'.$val.'" readonly type="text" name="'.$fname.'" onclick="c.selectdata(\''.$data.'\','.substr($type,10).',\''.$fname.'\',\''.$fieldname.'\','.$iszb.')">';
 		}
 		if($type=='ditumap'){
 			$zbnae	= $data;
@@ -256,9 +257,17 @@ class inputChajian extends Chajian
 			$str = '<'.$lx.' id="div_'.$fname.'" class="divinput">'.$str.'</'.$lx.'>';
 			if($ism==1 && $iszb==0){
 				if($iszhang){
-					$str = '<tr class="lumtr"><td colspan="2"><div style="padding-left:10px;padding-top:10px">'.$fnams.'</div>'.$str.'</td></tr>';
+//					$str = '<tr class="lumtr"><td colspan="2"><div style="padding-left:10px;padding-top:10px">'.$fnams.'</div>'.$str.'</td></tr>';
+                    $str = '<tr class="lumtr">
+                                <div class="lurim_c">'.str_replace(' ','<br>', $fnams).'</div>
+                                <div class="divinput_c">'.$str.'</div>
+                            </tr>';
 				}else{
-					$str = '<tr class="lumtr"><td class="lurim" nowrap>'.str_replace(' ','<br>', $fnams).'</td><td width="90%">'.$str.'</td></tr>';
+//					$str = '<tr class="lumtr"><td class="lurim" nowrap>'.str_replace(' ','<br>', $fnams).'</td><td width="90%">'.$str.'</td></tr>';
+                    $str = '<tr class="lumtr">
+                                <div class="lurim_c">'.str_replace(' ','<br>', $fnams).'</div>
+                                <div class="divinput_c">'.$str.'</div>
+                            </tr>';
 				}
 			}
 		}
@@ -288,10 +297,11 @@ class inputChajian extends Chajian
 		$valea  = explode('|', $oarr['value']);
 		$_vals0	= $valea[0];
 		$_vals1	= arrvalue($valea,1, $oarr['valueid']);
-		
-		$str 	= '<table width="99%" cellpadding="0" border="0"><tr><td width="100%"><input class="inputs" style="width:99%" '.$oarr['attr'].' placeholder="'.$oarr['placeholder'].'" id="change'.$fname.'" value="'.$_vals0.'" readonly type="text" name="'.$fname.'"><input name="'.$zbnae.'" value="'.$_vals1.'" id="change'.$fname.'_id" type="hidden"></td>';
-		$str   .= '<td nowrap><button onclick="js.changeclear(\'change'.$fname.'\')" class="webbtn" type="button">x</button><button id="btnchange_'.$fname.'" onclick="js.changeuser(\'change'.$fname.'\',\''.$type.'\',\''.$oarr['title'].'\' ,{changerange:\''.$oarr['changerange'].'\'})" type="button" class="webbtn">选</button></td></tr></table>';
-		
+
+//		$str 	= '<table width="99%" cellpadding="0" border="0"><tr><td width="100%"><input class="inputs" style="width:99%" '.$oarr['attr'].' placeholder="'.$oarr['placeholder'].'" id="change'.$fname.'" value="'.$_vals0.'" readonly type="text" name="'.$fname.'"><input name="'.$zbnae.'" value="'.$_vals1.'" id="change'.$fname.'_id" type="hidden"></td>';
+        $str 	= '<input class="inputs" style="width:99%" '.$oarr['attr'].' placeholder="'.$oarr['placeholder'].'" id="change'.$fname.'" value="'.$_vals0.'" readonly type="text" name="'.$fname.'" id="btnchange_'.$fname.'" onclick="js.changeuser(\'change'.$fname.'\',\''.$type.'\',\''.$oarr['title'].'\' ,{changerange:\''.$oarr['changerange'].'\'})"><input name="'.$zbnae.'" value="'.$_vals1.'" id="change'.$fname.'_id" type="hidden">';
+// 		$str   .= '<td nowrap><button onclick="js.changeclear(\'change'.$fname.'\')" class="webbtn" type="button">x</button><button id="btnchange_'.$fname.'" onclick="js.changeuser(\'change'.$fname.'\',\''.$type.'\',\''.$oarr['title'].'\' ,{changerange:\''.$oarr['changerange'].'\'})" type="button" class="webbtn">选</button></td></tr></table>';
+
 		return $str;
 	}
 	

+ 50 - 7
webmain/css/cssm.css

@@ -6,11 +6,11 @@ html{
 	font-family: sans-serif;
 }
 body{--main-color:#1389D3;color:#000000;margin:0px;border:0;font-size:14px; background-color:white}
-.mbody{background-color: #f1f1f1;}
+.mbody{background-color: #fff;}
 td,button{ font-size:14px}
 a,.cursor{cursor:pointer;}
 p{text-indent:24pt; margin:12px 0px;line-height:25px}
-input,textarea,select,button{resize: none;outline:none;font-size:14px;}
+input,textarea,select,button{resize: none;outline:none;font-size:14px;border:none;}
 .zhu{ color:#1389D3;color:var(--main-color)}
 .hui{ color:#888888}
 .red{ color:#ff0000}
@@ -47,16 +47,31 @@ ul,li,a{ list-style-type:none}
 .h1{ font-size:24px;font-weight:bold;}
 .h2{ font-size:20px;font-weight:bold;}
 
-.input,.inputs,.textarea{height:30px;line-height:25px;background-color:white;padding:2px;width:95%;border:0.5px #dddddd solid;border-radius:2px}
+/*margin-left: 5%;*/
+/*    width: 90%;*/
+/*    height: 40px;*/
+/*    font-size: 16px;*/
+/*    color: #000;*/
+/*    border: 1px solid #DCDCDC;*/
+/*    margin-top: 8px;*/
+/*    line-height: 40px;*/
+/*    padding-left: 4px;*/
+.input,.inputs,.textarea{
+	height: 40px;
+	line-height: 25px;
+	background-color: white;
+	width: 100%;
+
+}
 
 .inputb{height:30px;line-height:20px;background-color:white;padding:2px;border:0.5px #cccccc solid;border-radius:2px}
 .inputb:focus,.inputs:focus,.textarea:focus{border:0.5px var(--main-color) solid;box-shadow:0px 0px 5px rgba(0,0,0,0.3);}
 
 .title{height:40px;line-height:40px;overflow:hidden;font-size:18px;text-align:left;border-bottom:1px #cccccc solid;color:#55555;font-weight:bold; background-color:var(--main-color)}
 
-.inputs[readonly]{ background-color:#f1f1f1;box-shadow:none}
+/*.inputs[readonly]{ background-color:#f1f1f1;box-shadow:none}*/
 
-.btn{width:100%;height:44px;line-height:44px;opacity:0.8; background-color:var(--main-color);border:none;color:white;font-size:14px; cursor:pointer}
+.btn{width:100%;height:44px;line-height:44px;opacity:0.8; background-color:#00A1E9;border:none;color:white;font-size:18px; cursor:pointer;margin-top:10px;}
 .btn:active,.btn:hover{opacity:1;color:white;TEXT-DECORATION:none;}
 .btn:disabled{ background-color:#cccccc;color:#888888}
 a.btn{padding:5px 8px}
@@ -66,7 +81,7 @@ a.btn{padding:5px 8px}
 .header .back img{height:24px;width:24px}
 .header-back{width:50px;height:50px;display:block; background:url(../../images/back.png) no-repeat 7px 7px;position:absolute;left:0px;bottom:0px; cursor:default}
 .header-back:active{opacity:0.5}
-.divinput{padding:8px;}
+/*.divinput{padding:8px;}*/
 .padding10{padding:10px;}
 
 .imgbtn{padding:0px 5px}
@@ -87,4 +102,32 @@ a.webbtn:link,a.webbtn:visited,.webbtn{color:#ffffff;opacity:1; background-color
 .upload_items_items{padding:5px;text-align:center}
 .upload_items_meng{ background:rgba(0,0,0,0.5);position:absolute;left:0px;top:0px;height:60px;overflow:hidden;line-height:60px;text-align:center;width:100%;color:white}
 
-.list-itemv:active{color:var(--main-color);cursor:pointer}
+.list-itemv:active{color:var(--main-color);cursor:pointer}
+
+/*自定义样式*/
+#header_title{
+	background: #00A0E8;
+	color: #fff;
+	font-size: 20px;
+}
+
+.lurim_c{
+	margin-left: 5%;
+	font-size: 14px;
+	color: #000;
+	height: 14px;
+	line-height: 14px;
+	margin-top: 24px;
+}
+
+.divinput_c{
+	margin-left: 5%;
+	width: 90%;
+	min-height: 40px;
+	font-size: 16px;
+	color: #000;
+	border: 1px solid #DCDCDC;
+	margin-top: 8px;
+	line-height: 40px;
+	padding-left: 4px;
+}

文件差异内容过多而无法显示
+ 22 - 9
webmain/flow/input/tpl_input_lum.html