Mercurial > mercurial > hgweb_searcher2.cgi
comparison src/myframe.cpp @ 1:e0cf49906039
start editing preview.cpp / preview.h
| author | pyon@macmini |
|---|---|
| date | Thu, 07 Apr 2011 19:53:40 +0900 |
| parents | c174ac668e9f |
| children | 75fefb53d983 |
comparison
equal
deleted
inserted
replaced
| 0:c174ac668e9f | 1:e0cf49906039 |
|---|---|
| 1 // Filename : mainframe.cpp | 1 // Filename : mainframe.cpp |
| 2 // Last Change: 31-Mar-2011. | 2 // Last Change: 07-Apr-2011. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #include "symbol.h" | 5 #include "symbol.h" |
| 6 #include "common.h" | 6 #include "common.h" |
| 7 #include "myframe.h" | 7 #include "myframe.h" |
| 224 htmlbody += wxT("該当者: "); | 224 htmlbody += wxT("該当者: "); |
| 225 htmlbody += wxT("<b>") + name + wxT("</b>"); | 225 htmlbody += wxT("<b>") + name + wxT("</b>"); |
| 226 htmlbody += wxT(" ( ") + hhs + wxT(" )"); | 226 htmlbody += wxT(" ( ") + hhs + wxT(" )"); |
| 227 htmlbody += wxT("<br /><br />検索結果"); | 227 htmlbody += wxT("<br /><br />検索結果"); |
| 228 htmlbody += wxT("<table border=1>"); | 228 htmlbody += wxT("<table border=1>"); |
| 229 htmlbody += wxT("<tr bgcolor=\"#ffcc33\"><th>番号</th><th>日付</th><th>フォルダ</th></tr>"); | 229 htmlbody += wxT("<tr bgcolor=\"#ffcc33\"><th>番号</th><th>日付</th><th>フォルダ</th><th>操作</th></tr>"); |
| 230 | 230 |
| 231 wxRegEx reDate(wxT("(^.*20[0-9]{2}.)(20[0-9]{2})([0-2][0-9])([0-9]{2})(.*$)")); | 231 wxRegEx reDate(wxT("(^.*20[0-9]{2}.)(20[0-9]{2})([0-2][0-9])([0-9]{2})(.*$)")); |
| 232 | 232 |
| 233 int i=1; | 233 int i=1; |
| 234 int clrflg = 1; | 234 int clrflg = 1; |
| 243 } | 243 } |
| 244 else { | 244 else { |
| 245 htmlbody += wxT("<tr bgcolor=\"#ffff99\">"); | 245 htmlbody += wxT("<tr bgcolor=\"#ffff99\">"); |
| 246 clrflg = 1; | 246 clrflg = 1; |
| 247 } | 247 } |
| 248 htmlbody += wxT("<td align=\"center\">") + wxString::Format(wxT("%d"),i++) + wxT("</td>"); | 248 htmlbody += wxT("<td align=\"center\">") + wxString::Format(wxT("%d"),i++) + wxT("</td>"); // 番号 |
| 249 htmlbody += wxT("<td>") + date + wxT("</td>"); | 249 htmlbody += wxT("<td>") + date + wxT("</td>"); // 日付 |
| 250 htmlbody += wxT("<td>") + q.GetString(0) + wxT("</td></tr>"); | 250 htmlbody += wxT("<td>") + q.GetString(0) + wxT("</td></tr>"); // フォルダパス |
| 251 //htmlbody += wxT("<td>") + wxT("プレビュー") + wxT("</td></tr>"); | |
| 252 //htmlbody += wxT("<td>") + wxT("印刷") + wxT("</td></tr>"); | |
| 253 //htmlbody += wxT("<td>") + wxT("フォルダを開く") + wxT("</td></tr>"); | |
| 251 } | 254 } |
| 252 stmt.Finalize(); | 255 stmt.Finalize(); |
| 253 ccndb.Close(); | 256 ccndb.Close(); |
| 254 path.Shrink(); | 257 path.Shrink(); |
| 255 | 258 |
