<%
function creditorupimg170624(did)
tmpeditor170624=tmpeditor170624&"<script type=""text/javascript"" >" & vbCrLf
tmpeditor170624=tmpeditor170624&"KindEditor.ready(function(K) {" & vbCrLf
tmpeditor170624=tmpeditor170624&"  var editor = K.editor({" & vbCrLf
tmpeditor170624=tmpeditor170624&"    allowFileManager: true" & vbCrLf
tmpeditor170624=tmpeditor170624&"  });" & vbCrLf
tmpeditor170624=tmpeditor170624&"  //				var options = {" & vbCrLf
tmpeditor170624=tmpeditor170624&"  //        cssPath : '/css/index.css'," & vbCrLf
tmpeditor170624=tmpeditor170624&"  //        filterMode : true" & vbCrLf
tmpeditor170624=tmpeditor170624&"  //};" & vbCrLf
tmpeditor170624=tmpeditor170624&"  K('#imageupbutton170624"&did&"').click(function() {" & vbCrLf
tmpeditor170624=tmpeditor170624&"    editor.loadPlugin('image'," & vbCrLf
tmpeditor170624=tmpeditor170624&"    function() {" & vbCrLf
tmpeditor170624=tmpeditor170624&"      editor.plugin.imageDialog({" & vbCrLf
tmpeditor170624=tmpeditor170624&"        showRemote: false," & vbCrLf
tmpeditor170624=tmpeditor170624&"        imageUrl: K('#input170624"&did&"').val()," & vbCrLf
tmpeditor170624=tmpeditor170624&"        clickFn: function(url, title, width, height, border, align) {" & vbCrLf
tmpeditor170624=tmpeditor170624&"          var spurl = url.split(""/"");" & vbCrLf
tmpeditor170624=tmpeditor170624&"          var fori = spurl.length - 4;" & vbCrLf
tmpeditor170624=tmpeditor170624&"          var tmpurl = ''" & vbCrLf
tmpeditor170624=tmpeditor170624&"          for (var i = 0; i < 4; i++) {" & vbCrLf
tmpeditor170624=tmpeditor170624&"            if (tmpurl == """") {" & vbCrLf
tmpeditor170624=tmpeditor170624&"              tmpurl = spurl[fori + i];" & vbCrLf
tmpeditor170624=tmpeditor170624&"            } else {" & vbCrLf
tmpeditor170624=tmpeditor170624&"              tmpurl = tmpurl + ""/"" + spurl[fori + i];" & vbCrLf
tmpeditor170624=tmpeditor170624&"            }" & vbCrLf
tmpeditor170624=tmpeditor170624&"          }" & vbCrLf
tmpeditor170624=tmpeditor170624&"          url = tmpurl" & vbCrLf
tmpeditor170624=tmpeditor170624&"" & vbCrLf
tmpeditor170624=tmpeditor170624&"          K('#input170624"&did&"').val(url);" & vbCrLf
tmpeditor170624=tmpeditor170624&"          editor.hideDialog();" & vbCrLf
tmpeditor170624=tmpeditor170624&"        }" & vbCrLf
tmpeditor170624=tmpeditor170624&"      });" & vbCrLf
tmpeditor170624=tmpeditor170624&"    });" & vbCrLf
tmpeditor170624=tmpeditor170624&"  });" & vbCrLf
tmpeditor170624=tmpeditor170624&"});" & vbCrLf
tmpeditor170624=tmpeditor170624&"" & vbCrLf
tmpeditor170624=tmpeditor170624&"KindEditor.ready(function(K) {" & vbCrLf
tmpeditor170624=tmpeditor170624&"  var editor = K.editor({" & vbCrLf
tmpeditor170624=tmpeditor170624&"    fileManagerJson: '../kindeditor_4.1.10/asp/file_manager_json.asp'" & vbCrLf
tmpeditor170624=tmpeditor170624&"  });" & vbCrLf
tmpeditor170624=tmpeditor170624&"  K('#filemanagerbutton170624"&did&"').click(function() {" & vbCrLf
tmpeditor170624=tmpeditor170624&"    editor.loadPlugin('filemanager'," & vbCrLf
tmpeditor170624=tmpeditor170624&"    function() {" & vbCrLf
tmpeditor170624=tmpeditor170624&"      editor.plugin.filemanagerDialog({" & vbCrLf
tmpeditor170624=tmpeditor170624&"        viewType: 'VIEW'," & vbCrLf
tmpeditor170624=tmpeditor170624&"        dirName: 'image'," & vbCrLf
tmpeditor170624=tmpeditor170624&"        clickFn: function(url, title) {" & vbCrLf
tmpeditor170624=tmpeditor170624&"          var spurl = url.split(""/"");" & vbCrLf
tmpeditor170624=tmpeditor170624&"          var fori = spurl.length - 4;" & vbCrLf
tmpeditor170624=tmpeditor170624&"          var tmpurl = '';" & vbCrLf
tmpeditor170624=tmpeditor170624&"          for (var i = 0; i < 4; i++) {" & vbCrLf
tmpeditor170624=tmpeditor170624&"            if (tmpurl == """") {" & vbCrLf
tmpeditor170624=tmpeditor170624&"              tmpurl = spurl[fori + i];" & vbCrLf
tmpeditor170624=tmpeditor170624&"            } else {" & vbCrLf
tmpeditor170624=tmpeditor170624&"              tmpurl = tmpurl + ""/"" + spurl[fori + i];" & vbCrLf
tmpeditor170624=tmpeditor170624&"            }" & vbCrLf
tmpeditor170624=tmpeditor170624&"" & vbCrLf
tmpeditor170624=tmpeditor170624&"          }" & vbCrLf
tmpeditor170624=tmpeditor170624&"          url = tmpurl" & vbCrLf
tmpeditor170624=tmpeditor170624&"          K('#input170624"&did&"').val(url);" & vbCrLf
tmpeditor170624=tmpeditor170624&"          editor.hideDialog();" & vbCrLf
tmpeditor170624=tmpeditor170624&"        }" & vbCrLf
tmpeditor170624=tmpeditor170624&"      });" & vbCrLf
tmpeditor170624=tmpeditor170624&"    });" & vbCrLf
tmpeditor170624=tmpeditor170624&"  });" & vbCrLf
tmpeditor170624=tmpeditor170624&"});" & vbCrLf
tmpeditor170624=tmpeditor170624&"</script>" & vbCrLf
creditorupimg170624=tmpeditor170624
end function

private sub trsavecolumn180324()
	sql="select * from tr_column where id="&ctr_column.id&""
	rs.open sql,conn,1,3
	if not rs.eof then
	indexstyle = Trim(Request.Form("indexstyle"))
    If indexstyle = "" Then indexstyle = 2
    indexico = left(Trim(Request.Form("indexico")),200)
    indexdescription = left(Trim(Request.Form("indexdescription")),50)
	Rs("indexstyle") = indexstyle
    Rs("indexico") = indexico
    Rs("indexdescription") = indexdescription
	rs.update
	end if
	rs.close
end sub

%>