## -*- coding: utf_8 -*- <% from fcp import connection from fcp import fcpdefs from fcutils import util from fcws.fcweb import webutil from fcp import mlitem import os.path import urllib %> <%namespace name="fcnames" file="fcnames.html" import="renderFCNames"/> <% myMLItem = fcp.MyMLItem thisWebID = myMLItem.WebID() jsonStr = fcp.MeAsJSON((client.serverTZ,client.clientTZ)) isEditable = True if fcp.rights & fcpdefs.acWrite else False canEdit = isEditable isSent = True if myMLItem.Status() & fcpdefs.Sent or myMLItem.Type() == fcpdefs.oConfItem else False if isSent and isEditable and pageargs and not 'Editable' in pageargs: isEditable = False editableClass = " editable" if isEditable else " readonly" fType,subject = fcp.GetEscapedFormField(fcpdefs.dSubject) if subject is None: subject = "" windowTitle ="新規メッセージ" if isEditable and subject is "" else subject fType,envInfo = fcp.GetEscapedFormField(fcpdefs.dEnvInfo) dateSent,NTo,NCc = envInfo fwdNames = fcp.GetMsgNameList(fcpdefs.dFwdNames) fromNames = fcp.GetMsgNameList(fcpdefs.dFromName) if fwdNames and len(fwdNames) and fromNames: fromNames = fromNames + fwdNames numFromNames = len(fromNames) if fromNames else 0 fromseparator ="" toNames = fcp.GetMsgNameList(fcpdefs.dToName) numToNames = len(toNames) if toNames else 0 ccNames = fcp.GetMsgNameList(fcpdefs.dCopyName) numCcNames = len(ccNames) if ccNames else 0 bccNames = fcp.GetMsgNameList(fcpdefs.dBCCNames) numBccNames = len(bccNames) if bccNames else 0 nvNames = [] numNvNames = [] for i in xrange(0,9): nvNames.append(fcp.GetMsgNameList(fcpdefs.dNameVal1+i)) numNvNames.append(len(nvNames[i]) if nvNames[i] else 0) msgStatus = fcp.MyMLItem.Status() body = fcp.body if fcp.body is not None else "" fromNameID = 'fcfid-'+str(fcpdefs.dFromName) subjectID = 'fcfid-'+str(fcpdefs.dSubject) toNameID = 'fcfid-'+str(fcpdefs.dToName) ccNameID = 'fcfid-'+str(fcpdefs.dCopyName) bccNameID = 'fcfid-'+str(fcpdefs.dBCCNames) attachClasses = 'fc-form-row multiline' if fcp.GetNthMLItem(0) is None and not isEditable: attachClasses += ' fc-mouse-only' %>
${client.GetMsgStatusString(fcp)}
%if numToNames > 0 or isEditable: ${fcnames.renderFCNames(toNames,fcpdefs.dToName,"宛先:",isEditable,True,"","")} %endif
${webutil.stripNone(fcp, 1002, None, '日付:')}
${webutil.stripNone(fcp, 1003, None, '以下の伝言を承りました')}
${webutil.stripNone(fcp, 1001, None, '件名:')}
%if isEditable:
%endif
%if isEditable: %else: ${subject} %endif
${webutil.stripNone(fcp, 1010, None, '依頼主:')}
${webutil.stripNone(fcp, 1013, None, '所属:')}
${webutil.stripNone(fcp, 1014, None, '連絡先')}
電話をしました
折り返し電話をください
立ち寄りました
後でまた電話します
面会を希望します
折り返し電話しました
%if not isEditable or myMLItem.Type() == fcpdefs.oDocument: ${fcnames.renderFCNames(fromNames,fcpdefs.dFromName,"受付者:",False,False,"","")} %endif
%if numBccNames > 0 or isEditable: ${fcnames.renderFCNames(bccNames,fcpdefs.dBCCNames,"BCC:",isEditable,True,"","")} %endif
${webutil.stripNone(fcp, 32012, None, '添付ファイル:')}
%if fcp.GetNthMLItem(0) or isEditable:
%if isEditable:
%else:
%endif
%endif
VSにより作成
%if isEditable: %else:
%endif