## -*- coding: utf_8 -*- <% from datetime import datetime from fcp import fcpdefs from fcutils import util from fcp import mlitem from fcws.fcweb import webutil myMLItem = fcp.MyMLItem thisWebID = myMLItem.WebID() creatorCID = myMLItem.GetField(fcpdefs.lCreatorCID) userCID = CID jsonStr = '{"MYMLITEM":'+myMLItem.AsJSONArrayItem(mlitem.sendAll,(client.serverTZ,client.clientTZ))+',"RIGHTS":'+str(fcp.rights)+',"FORMID":'+str(fcp.formID)+',"USERCID":'+str(userCID)+'}' keepOpen = "" if userCID == str(client.sessionCID): timeParam = '&ts=' + str(datetime.now().microsecond) else: timeParam = '' windowTitle ="Profil " protected = myMLItem.Status() & fcpdefs.Protected readwrite = fcp.rights & 0x0020 is 0x20 theInfo = "" if (not readwrite) or protected: company = webutil.stripNone(fcp,3004) jobtitle = webutil.stripNone(fcp,3001) if len(company) > 0 and len(jobtitle) > 0: theInfo = "
" + company + "
" + jobtitle + "
" elif len(company) > 0: theInfo = "
" + company + "
" elif len(jobtitle) > 0: theInfo = "
" + jobtitle + "
" tempInfo1 = webutil.stripNone(fcp,3005) tempInfo2 = webutil.stripNone(fcp,3006) if tempInfo1 != "" and tempInfo2 != "": theInfo = theInfo + tempInfo1 + ", " + tempInfo2 + "
" elif tempInfo1 != "": theInfo = theInfo + tempInfo1 + "
" elif tempInfo2 != "": theInfo = theInfo + tempInfo2 + "
" tempInfo1 = webutil.stripNone(fcp,3007) tempInfo2 = webutil.stripNone(fcp,3009) if tempInfo1 != "" and tempInfo2 != "": theInfo = theInfo + tempInfo1 + ", " + tempInfo2 + "

" elif tempInfo1 != "": theInfo = theInfo + tempInfo1 + "

" elif tempInfo1 != "": theInfo = theInfo + tempInfo2 + "

" keepOpen="data-x-fcp-keepopen='1'" # we close this ourself %>
%if readwrite and not protected:
profile picture

 
%else:
profile picture
%if userCID != str(client.sessionCID): %else: %endif
${theInfo} Telefon:${webutil.stripNone(fcp,3010)}
Mobil:${webutil.stripNone(fcp,3011)}
Email: ${webutil.stripNone(fcp,3016)}
Frühere Positionen: ${webutil.stripNone(fcp,3020)}
Sprachen: ${webutil.stripNone(fcp,3021)}
Gruppen / Verbände: ${webutil.stripNone(fcp,3022)}
Fachgebiet: ${webutil.stripNone(fcp,3012)}
Ausbildung: ${webutil.stripNone(fcp,3013)}
${webutil.stripNone(fcp,3019)}
%endif