function print_field_update($prefix, $parent_id = null, $area = null)
 {
     $value = null;
     if ($area) {
         $sql = "select t." . $this->get_db_field() . " from `" . DB_PREF . "" . $area->get_db_table() . "` t where " . $area->get_db_key() . " = '" . $parent_id . "' ";
         $rs = mysql_query($sql);
         if (!$rs) {
             trigger_error("Can not get photo field data. " . $sql);
         }
         if ($lock = mysql_fetch_assoc($rs)) {
             $value = $lock['' . $this->get_db_field()];
         }
     }
     /* translation */
     global $parametersMod;
     $delete_translation = ' ' . $parametersMod->getValue('developer', 'std_mod', 'admin_translations', 'delete') . ' ';
     /*eof translation*/
     if (isset($this->mem_images[0]) && $this->mem_images[0] != '') {
         $image = BASE_URL . TMP_IMAGE_DIR . $this->mem_images[0];
     } else {
         $image = BASE_URL . $this->copies[0]['dest_dir'] . $value;
     }
     $html = new std_mod_html_output();
     if ($value || isset($this->mem_images[0]) && $this->mem_images[0] != '') {
         $html->html('<span class="label"><img width="200" src="' . $image . '"/></span>');
     }
     $html->input_file($prefix);
     if ($value || isset($this->mem_images[0]) && $this->mem_images[0] != '') {
         $html->html('<span class="label"><input  class="stdModBox" type="checkbox" name="' . $prefix . '_delete"></span>');
         $html->html($delete_translation . '');
     }
     return $html->html;
 }
 function print_field_update($prefix, $parent_id = null, $area = null)
 {
     $value = null;
     if ($area) {
         $sql = "select t." . $this->get_db_field() . " from `" . DB_PREF . "" . $area->get_db_table() . "` t where " . $area->get_db_key() . " = '" . $parent_id . "' ";
         $rs = mysql_query($sql);
         if (!$rs) {
             trigger_error("Can not get photo field data. " . $sql);
         }
         if ($lock = mysql_fetch_assoc($rs)) {
             $value = $lock['' . $this->get_db_field()];
         }
     }
     /* translation */
     global $parametersMod;
     $delete_translation = '&nbsp;' . $parametersMod->getValue('developer', 'std_mod', 'admin_translations', 'delete') . '&nbsp;';
     /*eof translation*/
     if (isset($this->mem_file) && $this->mem_file != '') {
         $file = TMP_FILE_DIR . $this->mem_file;
     } elseif ($value != '') {
         $file = $this->dest_dir . $value;
     }
     $html = new std_mod_html_output();
     $html->input_file($prefix);
     if ($value || isset($this->mem_file) && $this->mem_file != '') {
         $html->html('<span class="label"><a target="_blank" href="' . $file . '" >' . htmlspecialchars(basename($file)) . '</a></span>');
     }
     if ($value || isset($this->tmp_images[0]) && $this->tmp_images[0] != '') {
         $html->html('<span class="label"><input class="stdModBox" type="checkbox" name="' . $prefix . '_delete"></span>');
         $html->html($delete_translation . '');
     }
     return $html->html;
 }