Jump to content

TFT2012

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by TFT2012

  1. TFT2012

    help

    You may need an additional <DIV id="A"> to wrap these three <Div> <div class="font_menu2" id="body_center9"><span class="font_menu4">ALL IN-ONE CONVENIENCE</span></div> <br /> <div class="font_menu2"> •Showroom on site <br /> •Dedicated factory <br /> •Ample warehousing <br /> •Upscale office </div> <div class="font_menu2" id="body_center4">Evolve your business with the reinvention of common traditional factory space. confidential Biz Park brings factory, warehouse, office and showroom together in one functional concept. Your production and sales can now be at a single corporate address to bring efficiency and connectivity to the next level.</div> For the one you want to move up, it needs to be done the same thing as above. Like <div id="B">.......(your three sperated DIVs)</div> Then, set width and float:left to <div> A, set margin-left to <div> B.
  2. Hmmm.. how to attach the picture here? I made a screenshot for the issue. I saw the attachment when I reply, click the "browser", choose the picture (137KB), then there is no button like "submit" or "attach" for me to upload. If I click "POST', it is going to say "The attachment is not saved...."
  3. For this DIV, the stylesheet only defines margin, padding, font and width. The fieldset has margin and padding only. The table has only align and valign. There are no other style settings. This inner HTML of this DIV is generated by AJax, but it shouldn't be a problem, is it?
  4. I just tried, but it didn't work.
  5. Thanks for the solution.
  6. I have an issue with tables inside fieldset recently. Here is my code: <div style='width:1200px'> <fieldset><legend>sample</legend> <table id='A'> <tr><td>111</td><td>122</td><td>131</td><td>811</td></tr> </table> <table id='B'> <tr><td>111</td><td>122</td><td>131</td><td>811</td></tr> </table> <table id='C'> <tr><td>111</td><td>122</td><td>131</td><td>811</td></tr> </table> </fieldset> </div> -- The table ID in code only for distinguish the tables. I setup the outside DIV width to 1200px. I didn't setup the width to tables because the table A, B, C may have different width of cells. The issue is, table B will starts in a new line only if table A is long enough. Like the width of table A is about approx 1000px and table B is about 600px, then table B will starts from a new line. Otherwise, the table A and B will be parallel. Adding <br/> between tables dosen't work. Is there any way that can make table starts from a new line regardless the width of table? Thanks a lot.
  7. You may need an additional array to store the generated random number, like $array1 = array(); $array1[] = random(n, m); The last element in the $array1 will be the number you generate most recently.
  8. Hi all, I have a question regarding array_multisort(). For instance, I have one array as follow: $arr = array( array("PSize" => 216597, "DSize" => 1, "CFSize" => 172504 ), array("PSize" => 106597, "DSize" => 10, "CFSize" => 61311 ), array("PSize" => 166597, "DSize" => 5, "CFSize" => 261311 ), array("PSize" => 396597, "DSize" => 8, "CFSize" => 101311 ) ); In HTML, I have multiple selection boxes to select columns and types to sort. Each column will have one selection box like this. <select id='selectorId'> <option value='none'>None</option> <option value='SORT_ASC'>Ascending</option> <option value='SORT_DESC'>Descending</option> </select> When submit, I will return the string like "~column_1|sorting_type_1~column_2|sorting_type_2~...." back to AJax. If user selects "none", that means NO SORT to this column. Then I want: For example, if "PSize" is set to "none", the other two columns are set to "SORT_ASC", I can do foreach( $arr as $key => $row ) { //Only get the columns user want to sort. $sort_dsize[] = $row["DSize"]; $sort_cfsize[] = $row["CFSize"]; } array_multisort($sort_dsize, SORT_ASC, $sort_cfsize, SORT_ASC, $arr); If user only want to sort "PSize", then foreach( $arr as $key => $row ) { //Only get the columns user want to sort. $sort_psize[] = $row["PSize"]; } array_multisort($sort_psize, SORT_ASC, $arr); How can I do this dynamically? Not to use swtich, case or if/else. Thanks!!
  9. exec() capture the output from executable file (like .exe). If this is what you want, then try exec() like thorpe said. I have used exec() to read C++ executable file and returned them to webpage.
  10. I think you probably need seperate the "street" columns to like "street No." and "street Name". When you grab the both columns from database, you can perform array_multisort, like array_multisort($streetNo, SORT_DESC, $streetName, SORT_DESC);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.