PageRenderTime 58ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/yafsrc/YetAnotherForum.NET/controls/EditUsersProfile.ascx

#
ASP.NET | 386 lines | 386 code | 0 blank | 0 comment | 1 complexity | a6de2d340f6c296cb4104d9926f30136 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <%@ Control Language="C#" AutoEventWireup="true"
  2. Inherits="YAF.Controls.EditUsersProfile" Codebehind="EditUsersProfile.ascx.cs" %>
  3. <%@ Import Namespace="YAF.Types.Interfaces" %>
  4. <table width="100%" class="content EditUserProfileTable" cellspacing="1" cellpadding="4">
  5. <tr>
  6. <td class="header1" colspan="2">
  7. <YAF:LocalizedLabel runat="server" LocalizedPage="CP_EDITPROFILE" LocalizedTag="TITLE" />
  8. </td>
  9. </tr>
  10. <tr>
  11. <td colspan="2" class="header2">
  12. <b>
  13. <YAF:LocalizedLabel ID="LocalizedLabel1" runat="server" LocalizedPage="CP_EDITPROFILE"
  14. LocalizedTag="aboutyou" />
  15. </b>
  16. </td>
  17. </tr>
  18. <asp:PlaceHolder ID="DisplayNamePlaceholder" runat="server" Visible="false">
  19. <tr>
  20. <td class="postheader" style="width:50%">
  21. <YAF:LocalizedLabel ID="LocalizedLabel34" runat="server" LocalizedPage="CP_EDITPROFILE"
  22. LocalizedTag="DISPLAYNAME" />
  23. </td>
  24. <td class="post">
  25. <asp:TextBox ID="DisplayName" runat="server" CssClass="edit" />
  26. </td>
  27. </tr>
  28. </asp:PlaceHolder>
  29. <tr>
  30. <td class="postheader" style="width:50%">
  31. <YAF:LocalizedLabel ID="LocalizedLabel2" runat="server" LocalizedPage="CP_EDITPROFILE"
  32. LocalizedTag="REALNAME2" />
  33. </td>
  34. <td class="post">
  35. <asp:TextBox ID="Realname" runat="server" CssClass="edit" />
  36. </td>
  37. </tr>
  38. <tr id="HideTr" visible="<%# this.Get<YafBoardSettings>().AllowUserHideHimself || this.PageContext.IsAdmin %>" runat="server">
  39. <td class="postheader">
  40. <YAF:LocalizedLabel ID="LocalizedLabel35" runat="server" LocalizedPage="CP_EDITPROFILE"
  41. LocalizedTag="HIDEME" />
  42. </td>
  43. <td class="post">
  44. <asp:CheckBox ID="HideMe" runat="server" Checked="false" />
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="postheader">
  49. <YAF:LocalizedLabel ID="BirthdayLabel" runat="server" LocalizedPage="CP_EDITPROFILE"
  50. LocalizedTag="BIRTHDAY" />
  51. </td>
  52. <td class="post">
  53. <asp:TextBox ID="Birthday" runat="server" CssClass="edit"></asp:TextBox>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class="postheader">
  58. <YAF:LocalizedLabel ID="LocalizedLabel3" runat="server" LocalizedPage="CP_EDITPROFILE"
  59. LocalizedTag="OCCUPATION" />
  60. </td>
  61. <td class="post">
  62. <asp:TextBox ID="Occupation" runat="server" CssClass="edit" />
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="postheader">
  67. <YAF:LocalizedLabel ID="LocalizedLabel4" runat="server" LocalizedPage="CP_EDITPROFILE"
  68. LocalizedTag="INTERESTS" />
  69. </td>
  70. <td class="post">
  71. <asp:TextBox ID="Interests" runat="server" CssClass="edit" />
  72. </td>
  73. </tr>
  74. <tr>
  75. <td class="postheader">
  76. <YAF:LocalizedLabel ID="LocalizedLabel5" runat="server" LocalizedPage="CP_EDITPROFILE"
  77. LocalizedTag="GENDER" />
  78. </td>
  79. <td class="post">
  80. <asp:DropDownList ID="Gender" runat="server" CssClass="edit" />
  81. </td>
  82. </tr>
  83. <tr>
  84. <td colspan="2" class="header2">
  85. <b>
  86. <YAF:LocalizedLabel ID="LocalizedLabel6" runat="server" LocalizedPage="CP_EDITPROFILE"
  87. LocalizedTag="LOCATION" />
  88. </b>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td class="postheader">
  93. <YAF:LocalizedLabel ID="LocalizedLabel40" runat="server" LocalizedPage="CP_EDITPROFILE"
  94. LocalizedTag="COUNTRY" />
  95. </td>
  96. <td class="post">
  97. <YAF:CountryListBox ID="Country" AutoPostBack="true" OnTextChanged="LookForNewRegions" runat="server" CssClass="edit" />
  98. </td>
  99. </tr>
  100. <tr id="RegionTr" visible="false" runat="server">
  101. <td class="postheader">
  102. <YAF:LocalizedLabel ID="LocalizedLabel41" runat="server" LocalizedPage="CP_EDITPROFILE"
  103. LocalizedTag="REGION" />
  104. </td>
  105. <td class="post">
  106. <asp:DropDownList ID="Region" runat="server" CssClass="edit" />
  107. </td>
  108. </tr>
  109. <tr>
  110. <td class="postheader">
  111. <YAF:LocalizedLabel ID="LocalizedLabel42" runat="server" LocalizedPage="CP_EDITPROFILE"
  112. LocalizedTag="CITY" />
  113. </td>
  114. <td class="post">
  115. <asp:TextBox ID="City" runat="server" CssClass="edit" />
  116. </td>
  117. </tr>
  118. <tr>
  119. <td class="postheader">
  120. <YAF:LocalizedLabel ID="LocalizedLabel7" runat="server" LocalizedPage="CP_EDITPROFILE"
  121. LocalizedTag="where" />
  122. </td>
  123. <td class="post">
  124. <asp:TextBox ID="Location" runat="server" CssClass="edit" />
  125. </td>
  126. </tr>
  127. <tr>
  128. <td colspan="2" class="header2">
  129. <b>
  130. <YAF:LocalizedLabel ID="LocalizedLabel8" runat="server" LocalizedPage="CP_EDITPROFILE"
  131. LocalizedTag="homepage" />
  132. </b>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td class="postheader">
  137. <YAF:LocalizedLabel ID="LocalizedLabel9" runat="server" LocalizedPage="CP_EDITPROFILE"
  138. LocalizedTag="homepage2" />
  139. </td>
  140. <td class="post">
  141. <asp:TextBox runat="server" ID="HomePage" CssClass="edit" />
  142. </td>
  143. </tr>
  144. <tr>
  145. <td class="postheader">
  146. <YAF:LocalizedLabel ID="LocalizedLabel10" runat="server" LocalizedPage="CP_EDITPROFILE"
  147. LocalizedTag="weblog2" />
  148. </td>
  149. <td class="post">
  150. <asp:TextBox runat="server" ID="Weblog" CssClass="edit" />
  151. </td>
  152. </tr>
  153. <asp:PlaceHolder runat="server" ID="MetaWeblogAPI" Visible="true">
  154. <tr>
  155. <td colspan="2" class="header2">
  156. <b>
  157. <YAF:LocalizedLabel ID="LocalizedLabel11" runat="server" LocalizedPage="CP_EDITPROFILE"
  158. LocalizedTag="METAWEBLOG_TITLE" />
  159. </b>
  160. </td>
  161. </tr>
  162. <tr>
  163. <td class="postheader">
  164. <YAF:LocalizedLabel ID="LocalizedLabel12" runat="server" LocalizedPage="CP_EDITPROFILE"
  165. LocalizedTag="METAWEBLOG_API_URL" />
  166. </td>
  167. <td class="post">
  168. <asp:TextBox runat="server" ID="WeblogUrl" CssClass="edit" />
  169. </td>
  170. </tr>
  171. <tr>
  172. <td class="postheader">
  173. <YAF:LocalizedLabel ID="LocalizedLabel13" runat="server" LocalizedPage="CP_EDITPROFILE"
  174. LocalizedTag="METAWEBLOG_API_ID" />
  175. <br />
  176. <YAF:LocalizedLabel ID="LocalizedLabel14" runat="server" LocalizedPage="CP_EDITPROFILE"
  177. LocalizedTag="METAWEBLOG_API_ID_INSTRUCTIONS" />
  178. </td>
  179. <td class="post">
  180. <asp:TextBox runat="server" ID="WeblogID" CssClass="edit" />
  181. </td>
  182. </tr>
  183. <tr>
  184. <td class="postheader">
  185. <YAF:LocalizedLabel ID="LocalizedLabel15" runat="server" LocalizedPage="CP_EDITPROFILE"
  186. LocalizedTag="METAWEBLOG_API_USERNAME" />
  187. </td>
  188. <td class="post">
  189. <asp:TextBox runat="server" ID="WeblogUsername" CssClass="edit" />
  190. </td>
  191. </tr>
  192. </asp:PlaceHolder>
  193. <tr>
  194. <td colspan="2" class="header2">
  195. <b>
  196. <YAF:LocalizedLabel ID="LocalizedLabel16" runat="server" LocalizedPage="CP_EDITPROFILE"
  197. LocalizedTag="messenger" />
  198. </b>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td class="postheader">
  203. <YAF:LocalizedLabel ID="LocalizedLabel29" runat="server" LocalizedPage="CP_EDITPROFILE"
  204. LocalizedTag="MSN" />
  205. </td>
  206. <td class="post">
  207. <asp:TextBox runat="server" ID="MSN" CssClass="edit" />
  208. </td>
  209. </tr>
  210. <tr>
  211. <td class="postheader">
  212. <YAF:LocalizedLabel ID="LocalizedLabel28" runat="server" LocalizedPage="CP_EDITPROFILE"
  213. LocalizedTag="YIM" />
  214. </td>
  215. <td class="post">
  216. <asp:TextBox runat="server" ID="YIM" CssClass="edit" />
  217. </td>
  218. </tr>
  219. <tr>
  220. <td class="postheader">
  221. <YAF:LocalizedLabel ID="LocalizedLabel27" runat="server" LocalizedPage="CP_EDITPROFILE"
  222. LocalizedTag="AIM" />
  223. </td>
  224. <td class="post">
  225. <asp:TextBox runat="server" ID="AIM" CssClass="edit" />
  226. </td>
  227. </tr>
  228. <tr>
  229. <td class="postheader">
  230. <YAF:LocalizedLabel ID="LocalizedLabel26" runat="server" LocalizedPage="CP_EDITPROFILE"
  231. LocalizedTag="ICQ" />
  232. </td>
  233. <td class="post">
  234. <asp:TextBox runat="server" ID="ICQ" CssClass="edit" />
  235. </td>
  236. </tr>
  237. <tr>
  238. <td class="postheader">
  239. <YAF:LocalizedLabel ID="LocalizedLabel31" runat="server" LocalizedPage="CP_EDITPROFILE"
  240. LocalizedTag="Facebook" />
  241. </td>
  242. <td class="post">
  243. <asp:TextBox runat="server" ID="Facebook" CssClass="edit" />
  244. </td>
  245. </tr>
  246. <tr>
  247. <td class="postheader">
  248. <YAF:LocalizedLabel ID="LocalizedLabel33" runat="server" LocalizedPage="CP_EDITPROFILE"
  249. LocalizedTag="Twitter" />
  250. </td>
  251. <td class="post">
  252. <asp:TextBox runat="server" ID="Twitter" CssClass="edit" />
  253. </td>
  254. </tr>
  255. <tr>
  256. <td class="postheader">
  257. <YAF:LocalizedLabel ID="LocalizedLabel37" runat="server" LocalizedPage="CP_EDITPROFILE"
  258. LocalizedTag="TWITTER_ID" />
  259. </td>
  260. <td class="post">
  261. <asp:TextBox runat="server" ID="TwitterId" CssClass="edit" />
  262. </td>
  263. </tr>
  264. <tr>
  265. <td class="postheader">
  266. <YAF:LocalizedLabel ID="LocalizedLabel32" runat="server" LocalizedPage="CP_EDITPROFILE"
  267. LocalizedTag="xmpp" />
  268. </td>
  269. <td class="post">
  270. <asp:TextBox runat="server" ID="Xmpp" CssClass="edit" />
  271. </td>
  272. </tr>
  273. <tr>
  274. <td class="postheader">
  275. <YAF:LocalizedLabel ID="LocalizedLabel30" runat="server" LocalizedPage="CP_EDITPROFILE"
  276. LocalizedTag="SKYPE" />
  277. </td>
  278. <td class="post">
  279. <asp:TextBox runat="server" ID="Skype" CssClass="edit" />
  280. </td>
  281. </tr>
  282. <tr>
  283. <td colspan="2" class="header2">
  284. <b>
  285. <YAF:LocalizedLabel ID="LocalizedLabel25" runat="server" LocalizedPage="CP_EDITPROFILE"
  286. LocalizedTag="TIMEZONE" />
  287. </b>
  288. </td>
  289. </tr>
  290. <tr>
  291. <td class="postheader">
  292. <YAF:LocalizedLabel ID="DSTLocalizedLabel" runat="server" LocalizedPage="CP_EDITPROFILE"
  293. LocalizedTag="DST" />
  294. </td>
  295. <td class="post">
  296. <asp:CheckBox runat="server" ID="DSTUser" />
  297. </td>
  298. </tr>
  299. <tr>
  300. <td class="postheader">
  301. <YAF:LocalizedLabel ID="LocalizedLabel24" runat="server" LocalizedPage="CP_EDITPROFILE"
  302. LocalizedTag="TIMEZONE2" />
  303. </td>
  304. <td class="post">
  305. <asp:DropDownList runat="server" ID="TimeZones" DataTextField="Name" DataValueField="Value" CssClass="edit" />
  306. </td>
  307. </tr>
  308. <tr runat="server" id="ForumSettingsRows">
  309. <td colspan="2" class="header2">
  310. <b>
  311. <YAF:LocalizedLabel ID="LocalizedLabel23" runat="server" LocalizedPage="CP_EDITPROFILE"
  312. LocalizedTag="FORUM_SETTINGS" />
  313. </b>
  314. </td>
  315. </tr>
  316. <tr runat="server" id="UserThemeRow">
  317. <td class="postheader">
  318. <YAF:LocalizedLabel ID="LocalizedLabel22" runat="server" LocalizedPage="CP_EDITPROFILE"
  319. LocalizedTag="SELECT_THEME" />
  320. </td>
  321. <td class="post">
  322. <asp:DropDownList runat="server" ID="Theme" CssClass="edit" />
  323. </td>
  324. </tr>
  325. <tr runat="server" id="TrTextEditors">
  326. <td class="postheader">
  327. <YAF:LocalizedLabel ID="LocalizedLabel19" runat="server" LocalizedPage="CP_EDITPROFILE"
  328. LocalizedTag="SELECT_TEXTEDITOR" />
  329. </td>
  330. <td class="post">
  331. <asp:DropDownList ID="ForumEditor" CssClass="edit" runat="server" DataValueField="Value" DataTextField="Name">
  332. </asp:DropDownList>
  333. </td>
  334. </tr>
  335. <tr runat="server" id="UseMobileThemeRow" visible="false">
  336. <td class="postheader">
  337. <YAF:LocalizedLabel ID="LocalizedLabel21" runat="server" LocalizedPage="CP_EDITPROFILE"
  338. LocalizedTag="USE_MOBILE_THEME" />
  339. </td>
  340. <td class="post">
  341. <asp:CheckBox ID="UseMobileTheme" runat="server" />
  342. </td>
  343. </tr>
  344. <tr runat="server" id="UserLanguageRow">
  345. <td class="postheader">
  346. <YAF:LocalizedLabel ID="LocalizedLabel20" runat="server" LocalizedPage="CP_EDITPROFILE"
  347. LocalizedTag="SELECT_LANGUAGE" />
  348. </td>
  349. <td class="post">
  350. <asp:DropDownList runat="server" ID="Culture" CssClass="edit" />
  351. </td>
  352. </tr>
  353. <tr runat="server" id="UserLoginRow">
  354. <td class="postheader">
  355. <YAF:LocalizedLabel ID="LocalizedLabel36" runat="server" LocalizedPage="CP_EDITPROFILE"
  356. LocalizedTag="USE_SINGLESIGNON" />
  357. </td>
  358. <td class="post">
  359. <asp:CheckBox id="SingleSignOn" runat="server" />
  360. </td>
  361. </tr>
  362. <asp:PlaceHolder runat="server" ID="LoginInfo" Visible="false">
  363. <tr>
  364. <td colspan="2" class="header2">
  365. <YAF:LocalizedLabel ID="LocalizedLabel18" runat="server" LocalizedPage="CP_EDITPROFILE"
  366. LocalizedTag="CHANGE_EMAIL" />
  367. </td>
  368. </tr>
  369. <tr>
  370. <td class="postheader">
  371. <YAF:LocalizedLabel ID="LocalizedLabel17" runat="server" LocalizedPage="CP_EDITPROFILE"
  372. LocalizedTag="EMAIL" />
  373. </td>
  374. <td class="post">
  375. <asp:TextBox ID="Email" CssClass="edit" runat="server" OnTextChanged="Email_TextChanged" />
  376. </td>
  377. </tr>
  378. </asp:PlaceHolder>
  379. <tr>
  380. <td class="footer1" colspan="2" align="center">
  381. <asp:Button ID="UpdateProfile" CssClass="pbutton" runat="server" OnClick="UpdateProfile_Click" />
  382. |
  383. <asp:Button ID="Cancel" CssClass="pbutton" runat="server" OnClick="Cancel_Click" />
  384. </td>
  385. </tr>
  386. </table>