?> </td> <td> <button class="mini-button button" onclick="showDialog()"> <span class="icon mif-table"></span> ฟิวส์ </button> </td> </tr> <?php } ?> </tbody> </table> <?php $field = Mastables::model()->getMetaData()->columns; foreach ($field as $f) { $re[] = $f->rawName; } //echo implode(",", $re); ?> </div> <div data-role="dialog" id="dialog" class="padding20" data-close-button="true" data-overlay="true" data-overlay-color="op-dark"> <h1>Simple dialog</h1> <p> Dialog :: Metro UI CSS - The front-end framework for developing projects on the web in Windows Metro Style. </p>
public function actionCreate() { $Tables = new Mastables(); $data['tables'] = $Tables->findAll(); $this->render("//Mastable/create", $data); }