echo $class_name; ?> .extraFileUploadCallback(); return $(''); } }); }); </script> <form id="form<?php echo $class_name; ?> FileUploadForm" action="query/file_upload.php" method="POST" enctype="multipart/form-data"> <input type="hidden" name="Module_id" value="<?php echo DS_Module::from_value($class_name)->id; ?> " /> <input type="hidden" name="object_id" value="<?php echo $oid; ?> " /> <input type="hidden" name="temp_id" value="<?php echo $temp_id; ?> " /> <input type="file" name="file"> <button>Upload</button> <div class="ui-widget-header ui-corner-all">Upload file</div> </form> <table class="fullWidth ui-widget-content ui-corner-all" id="form<?php
public function get_files() { return File::from_property(array("Module_id" => DS_Module::from_value(static::get_mysql_table())->id, "object_id" => $this->id)); }
public function get_rights_by_module_table($table_name) { $Module_id = 0; $module = DS_Module::from_value($table_name); if ($module != null) { $Module_id = $module->id; } return $this->get_rights_by_module($Module_id); }