Anh cũng gõ đại theo thói quen khi cài thử phpbb thôi

. Cái hình trên xài modalbox có lỗi với gmap nên thôi không xài nữa, add mod trực tiếp luôn:
Open file WebControls/acp_DDH.ascx.csThay hàm này:
Using csharp Syntax Highlighting
protected void FormView1_DataBound
(object sender, EventArgs e
)
{
FormView fv
= sender
as FormView
;
if (fv.
CurrentMode == FormViewMode.
ReadOnly)
{
CheckBox chk
= fv.
FindControl("TinhTrangCheckBox") as CheckBox
;
Label lb
= fv.
FindControl("TinhTrangLB") as Label
;
Label nd
= fv.
FindControl("NgayDatLabel") as Label
;
Label ng
= fv.
FindControl("NgayGiaoLabel") as Label
;
Label dc
= fv.
FindControl("DiaChiLabel") as Label
;
DateTime dt
= new DateTime
();
dt
= DateTime.
Parse(nd.
Text);
nd.
Text = String.
Format("{0:dd/MM/yyyy}", dt
);
dt
= DateTime.
Parse(ng.
Text);
ng.
Text = String.
Format("{0:dd/MM/yyyy}", dt
);
if (chk.
Checked)
lb.
Text = "Hoàn tất";
else
lb.
Text = "Chưa hoàn tất";
dc.
Text += " [<a href='http://maps.google.com/maps?q=" + dc.
Text + "' target='_blank'>Open Map</a>]";
}
else
{
TextBox ng
= fv.
FindControl("NgayGiaoTextBox") as TextBox
;
ng.
Attributes.
Add("readonly",
"readonly");
TextBox nd
= fv.
FindControl("NgayDatTextBox") as TextBox
;
nd.
Attributes.
Add("readonly",
"readonly");
}
}Parsed in 0.014 seconds, using
GeSHi 1.0.8.4
Khi nào xong đề tài nhớ giúp anh nữa nhé.
