+const std::string PeerTrustPage::CreateLocalIdentityDropDown(const std::string &name, const int selectedlocalidentityid)\r
+{\r
+ std::string result="";\r
+ \r
+ result+="<select name=\""+name+"\">";\r
+ \r
+ SQLite3DB::Statement st=m_db->Prepare("SELECT LocalIdentityID,Name,PublicKey FROM tblLocalIdentity WHERE PublicKey IS NOT NULL ORDER BY Name COLLATE NOCASE;");\r
+ st.Step();\r
+\r
+ while(st.RowReturned())\r
+ {\r
+ int localidentityid=-1;\r
+ std::string localidentityidstr="";\r
+ std::string name="";\r
+ std::string publickey="";\r
+\r
+ st.ResultInt(0,localidentityid);\r
+ st.ResultText(1,name);\r
+ st.ResultText(2,publickey);\r
+\r
+ StringFunctions::Convert(localidentityid,localidentityidstr);\r
+\r
+ result+="<option value=\""+localidentityidstr+"\"";\r
+ if(localidentityid==selectedlocalidentityid)\r
+ {\r
+ result+=" SELECTED";\r
+ }\r
+ result+=">"+SanitizeOutput(CreateShortIdentityName(name,publickey))+"</option>";\r
+ st.Step();\r
+ }\r
+\r
+ result+="</select>";\r
+\r
+ return result;\r
+}\r
+\r