@@ -71,7 +71,7 @@ class ListView | |||||
$this->Fields = $this->TypeLink->TypeInfos; | $this->Fields = $this->TypeLink->TypeInfos; | ||||
$this->Fields['id'] = $typeid; | $this->Fields['id'] = $typeid; | ||||
$this->Fields['position'] = $this->TypeLink->GetPositionLink(true); | $this->Fields['position'] = $this->TypeLink->GetPositionLink(true); | ||||
$this->Fields['title'] = preg_replace("/[<>]/", " / ", $this->TypeLink->GetPositionLink(false)); | |||||
$this->Fields['title'] = preg_replace("/[<>]/", "-", $this->TypeLink->GetPositionLink(false)); | |||||
//添加联动单筛选 | //添加联动单筛选 | ||||
if (isset($_REQUEST['tid'])) { | if (isset($_REQUEST['tid'])) { | ||||
foreach($_GET as $key => $value) { | foreach($_GET as $key => $value) { | ||||
@@ -70,7 +70,7 @@ class SgListView | |||||
$this->Fields = $this->TypeLink->TypeInfos; | $this->Fields = $this->TypeLink->TypeInfos; | ||||
$this->Fields['id'] = $typeid; | $this->Fields['id'] = $typeid; | ||||
$this->Fields['position'] = $this->TypeLink->GetPositionLink(true); | $this->Fields['position'] = $this->TypeLink->GetPositionLink(true); | ||||
$this->Fields['title'] = preg_replace("/[<>]/", " / ", $this->TypeLink->GetPositionLink(false)); | |||||
$this->Fields['title'] = preg_replace("/[<>]/", "-", $this->TypeLink->GetPositionLink(false)); | |||||
//获得附加表和列表字段信息 | //获得附加表和列表字段信息 | ||||
$this->AddTable = $this->ChannelUnit->ChannelInfos['addtable']; | $this->AddTable = $this->ChannelUnit->ChannelInfos['addtable']; | ||||
$listfield = trim($this->ChannelUnit->ChannelInfos['listfields']); | $listfield = trim($this->ChannelUnit->ChannelInfos['listfields']); | ||||
@@ -92,11 +92,11 @@ function GetFormItem($ctag, $admintype = 'admin') | |||||
$dfvalue = str_replace('{{', '<', $dfvalue); | $dfvalue = str_replace('{{', '<', $dfvalue); | ||||
$dfvalue = str_replace('}}', '>', $dfvalue); | $dfvalue = str_replace('}}', '>', $dfvalue); | ||||
if ($admintype == 'admin') { | if ($admintype == 'admin') { | ||||
$innertext = GetEditor($fieldname, $dfvalue, 360, 'Basic', 'string'); | |||||
$innertext = GetEditor($fieldname, $dfvalue, 350, 'Basic', 'string'); | |||||
} else if ($admintype == 'diy') { | } else if ($admintype == 'diy') { | ||||
$innertext = GetEditor($fieldname, $dfvalue, 360, 'Diy', 'string'); | |||||
$innertext = GetEditor($fieldname, $dfvalue, 350, 'Diy', 'string'); | |||||
} else { | } else { | ||||
$innertext = GetEditor($fieldname, $dfvalue, 360, 'Member', 'string'); | |||||
$innertext = GetEditor($fieldname, $dfvalue, 350, 'Member', 'string'); | |||||
} | } | ||||
} else if ($fieldType == "multitext") { | } else if ($fieldType == "multitext") { | ||||
$innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control admin-textarea-sm'></textarea>"; | $innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control admin-textarea-sm'></textarea>"; | ||||
@@ -337,16 +337,16 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') | |||||
$okfvalue = ''; | $okfvalue = ''; | ||||
} | } | ||||
if ($admintype == 'admin') { | if ($admintype == 'admin') { | ||||
$myformItem = GetEditor($fieldname, $okfvalue, 360, 'Basic', 'string')." <input type='hidden' name='{$fieldname}_file' value='{$fvalue}'> "; | |||||
$myformItem = GetEditor($fieldname, $okfvalue, 350, 'Basic', 'string')." <input type='hidden' name='{$fieldname}_file' value='{$fvalue}'> "; | |||||
} else { | } else { | ||||
$myformItem = GetEditor($fieldname, $okfvalue, 360, 'Member', 'string')." <input type='hidden' name='{$fieldname}_file' value='{$fvalue}'> "; | |||||
$myformItem = GetEditor($fieldname, $okfvalue, 350, 'Member', 'string')." <input type='hidden' name='{$fieldname}_file' value='{$fvalue}'> "; | |||||
} | } | ||||
$innertext = $myformItem; | $innertext = $myformItem; | ||||
} else if ($ftype == "htmltext") { | } else if ($ftype == "htmltext") { | ||||
if ($admintype == 'admin') { | if ($admintype == 'admin') { | ||||
$myformItem = GetEditor($fieldname, $fvalue, 360, 'Basic', 'string')." "; | |||||
$myformItem = GetEditor($fieldname, $fvalue, 350, 'Basic', 'string')." "; | |||||
} else { | } else { | ||||
$myformItem = GetEditor($fieldname, $fvalue, 360, 'Member', 'string')." "; | |||||
$myformItem = GetEditor($fieldname, $fvalue, 350, 'Member', 'string')." "; | |||||
} | } | ||||
$innertext = $myformItem; | $innertext = $myformItem; | ||||
} else if ($ftype == "multitext") { | } else if ($ftype == "multitext") { | ||||
@@ -56,7 +56,7 @@ | |||||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | <?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | ||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<span class="col-sm-2 col-form-label">正文</span> | <span class="col-sm-2 col-form-label">正文</span> | ||||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div> | |||||
<div class="col-sm-10"><?php GetEditor("body","",350,"Member");?></div> | |||||
</div> | </div> | ||||
<input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $cfg_album_width;?>"> | <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $cfg_album_width;?>"> | ||||
<input name="prow" type="hidden" value="<?php echo $cfg_album_row;?>"> | <input name="prow" type="hidden" value="<?php echo $cfg_album_row;?>"> | ||||
@@ -59,7 +59,7 @@ | |||||
<?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?> | <?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?> | ||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<span class="col-sm-2 col-form-label">正文</span> | <span class="col-sm-2 col-form-label">正文</span> | ||||
<div class="col-sm-10"><?php GetEditor("body",$addRow['body'],400,"Member");?></div> | |||||
<div class="col-sm-10"><?php GetEditor("body",$addRow['body'],350,"Member");?></div> | |||||
</div> | </div> | ||||
<input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth');?>"> | <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $abinfo->GetAtt('maxwidth');?>"> | ||||
<input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row');?>"> | <input name="prow" type="hidden" value="<?php echo $abinfo->GetAtt('row');?>"> | ||||
@@ -55,7 +55,7 @@ | |||||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | <?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | ||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<span class="col-sm-2 col-form-label">正文</span> | <span class="col-sm-2 col-form-label">正文</span> | ||||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div> | |||||
<div class="col-sm-10"><?php GetEditor("body",$addRow['body'],350,"Member");?></div> | |||||
</div> | </div> | ||||
<div class="text-center"> | <div class="text-center"> | ||||
<button type="submit" class="btn btn-success btn-sm">提交</button> | <button type="submit" class="btn btn-success btn-sm">提交</button> | ||||
@@ -58,7 +58,7 @@ | |||||
<?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?> | <?php PrintAutoFieldsEdit($row['fieldset'],$addRow,'autofield');?> | ||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<span class="col-sm-2 col-form-label">正文</span> | <span class="col-sm-2 col-form-label">正文</span> | ||||
<div class="col-sm-10"><?php GetEditor("body",$addRow['body'],400,"Member");?></div> | |||||
<div class="col-sm-10"><?php GetEditor("body",$addRow['body'],350,"Member");?></div> | |||||
</div> | </div> | ||||
<div class="text-center"> | <div class="text-center"> | ||||
<button type="submit" class="btn btn-success btn-sm">提交</button> | <button type="submit" class="btn btn-success btn-sm">提交</button> | ||||
@@ -143,7 +143,7 @@ | |||||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | <?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | ||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<span class="col-sm-2 col-form-label">正文</span> | <span class="col-sm-2 col-form-label">正文</span> | ||||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div> | |||||
<div class="col-sm-10"><?php GetEditor("body","",350,"Member");?></div> | |||||
</div> | </div> | ||||
<div class="form-group"> | <div class="form-group"> | ||||
<label for="softurl1">软件网址:</label> | <label for="softurl1">软件网址:</label> | ||||
@@ -144,7 +144,7 @@ | |||||
<div class="col-sm-10"> | <div class="col-sm-10"> | ||||
<?php | <?php | ||||
$addRow["introduce"] = isset($addRow["introduce"])? $addRow["introduce"] : ''; | $addRow["introduce"] = isset($addRow["introduce"])? $addRow["introduce"] : ''; | ||||
GetEditor("body",$addRow["introduce"],400,"Small"); | |||||
GetEditor("body",$addRow["introduce"],350,"Small"); | |||||
?> | ?> | ||||
</div> | </div> | ||||
</div> | </div> | ||||