当前位置: 首页>>代码示例>>PHP>>正文


PHP gen_id函数代码示例

本文整理汇总了PHP中gen_id函数的典型用法代码示例。如果您正苦于以下问题:PHP gen_id函数的具体用法?PHP gen_id怎么用?PHP gen_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了gen_id函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render_single_member_selector

function render_single_member_selector(Dimension $dimension, $genid = null, $selected_member_ids = null, $options = array()) {
	if (is_null($genid)) $genid = gen_id();
	
	$dimension_options = $dimension->getOptions(true);
	$dim_info = array(
		'dimension_id' => $dimension->getId(),
		'dimension_code' => $dimension->getCode(),
		'dimension_options' => $dimension_options,
		'is_manageable' => $dimension->getIsManageable(),
		'is_required' => array_var($options, 'is_required'),
		'is_multiple' => array_var($options, 'is_multiple'),
	);
	if($dimension_options && isset($dimension_options->useLangs) && $dimension_options->useLangs ) {
		$dim_info['dimension_name'] = lang($dimension->getCode());
	}
	
	$dimensions = array($dim_info);
	
	
	if (is_null($selected_member_ids)) $selected_member_ids = array();
			
	// Set view variables
	$selected_members = count($selected_member_ids) > 0 ? Members::findAll(array('conditions' => 'id IN ('.implode(',', $selected_member_ids).')')) : array();
	$selected_members_json = "[".implode(',', $selected_member_ids)."]";
	$component_id = "$genid-member-selectors-panel-$content_object_type_id";
	
	$listeners = array_var($options, 'listeners', array());
	$allowed_member_type_ids = array_var($options, 'allowedMemberTypes', null);
	
	// Render view
	include get_template_path("components/multiple_dimension_selector", "dimension");
}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:32,代码来源:dimension.php

示例2: nFileHandleUpload

function nFileHandleUpload($file)
{
    global $nFilePrefix, $filelimit;
    $name = $file['name'];
    $tmp_name = $file['tmp_name'];
    if ($file['size'] > $filelimit) {
        return 0;
    }
    $name = preg_replace("{/|\\s+}", "_", $name);
    $name = preg_replace("/^\\./", "0.", $name);
    $name = preg_replace("/^index/", "noindex", $name);
    $name = preg_replace("/^default/", "nodefault", $name);
    do {
        $pref = gen_id();
    } while (is_file("{$nFilePrefix}/{$pref}/{$name}"));
    $name = "{$pref}/{$name}";
    if (!is_dir("{$nFilePrefix}/{$pref}")) {
        mkdir_perms("{$nFilePrefix}/{$pref}", 0755);
    }
    if (!is_dir("{$nFilePrefix}/html/{$pref}")) {
        mkdir_perms("{$nFilePrefix}/html/{$pref}", 0755);
    }
    move_uploaded_file($tmp_name, "{$nFilePrefix}/{$name}");
    chmod("{$nFilePrefix}/{$name}", 0755) or $fail = 1;
    if ($fail == 1) {
        return 0;
    } else {
        $_SESSION['own'][] = "{$nFilePrefix}/{$name}";
        return $name;
    }
}
开发者ID:Voker57,项目名称:3way-uploader,代码行数:31,代码来源:file.php

示例3: add_subscribers_list

 function add_subscribers_list()
 {
     if (logged_user()->isGuest()) {
         flash_error(lang('no access permissions'));
         ajx_current("empty");
         return;
     }
     $genid = array_var($_GET, 'genid');
     $obj_id = array_var($_GET, 'obj_id');
     $object = Objects::findObject($obj_id);
     if (!isset($genid)) {
         $genid = gen_id();
     }
     $subscriberIds = array();
     if ($object->isNew()) {
         $subscriberIds[] = logged_user()->getId();
     } else {
         foreach ($object->getSubscribers() as $u) {
             $subscriberIds[] = $u->getId();
         }
     }
     tpl_assign('object', $object);
     tpl_assign('subscriberIds', $subscriberIds);
     tpl_assign('genid', $genid);
 }
开发者ID:rorteg,项目名称:fengoffice,代码行数:25,代码来源:ObjectController.class.php

示例4: gen_id

function gen_id($query)
{
    $g = rand(10000, 99999);
    while ($row = mysqli_fetch_assoc($query)) {
        if ($g == $row['id']) {
            gen_id($query);
        }
    }
    return $g;
}
开发者ID:Anugrahaa,项目名称:contactbackup,代码行数:10,代码来源:signup.php

示例5: render

 function render($control_name)
 {
     $genid = gen_id();
     $object_types = ObjectTypes::getAvailableObjectTypes();
     $value = $this->getValue();
     $out = '';
     foreach ($object_types as $ot) {
         $checked = array_search($ot->getId(), $value) !== false;
         $out .= '<div  class="checkbox-config-option">';
         $out .= label_tag(lang($ot->getName()), $genid . '_' . $control_name . '_' . $ot->getId(), false, array('style' => 'cursor:pointer;'), '');
         $out .= checkbox_field($control_name . '[' . $ot->getId() . ']', $checked, array('id' => $genid . '_' . $control_name . '_' . $ot->getId()));
         $out .= '</div >';
     }
     $out .= '<input type="hidden" name="' . $control_name . '[0]" value=" "><div class="clear"></div>';
     return $out;
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:16,代码来源:MultipleObjectTypeConfigHandler.class.php

示例6: render

 function render($control_name)
 {
     $genid = gen_id();
     $object_types = ObjectTypes::getAvailableObjectTypesWithDimensionObjects(" AND `name` IN ('task', 'project', 'sample')");
     $value = $this->getValue();
     $out = '';
     foreach ($object_types as $ot) {
         $checked = array_search($ot->getId(), $value) !== false;
         $out .= '<div style="float:left; margin-right: 15px; min-width: 130px;">';
         $out .= label_tag(lang($ot->getName()), $genid . '_' . $control_name . '_' . $ot->getId(), false, array('style' => 'cursor:pointer;'), '');
         $out .= checkbox_field($control_name . '[' . $ot->getId() . ']', $checked, array('id' => $genid . '_' . $control_name . '_' . $ot->getId()));
         $out .= '</div >';
     }
     $out .= '<input type="hidden" name="' . $control_name . '[0]" value=" "><div class="clear"></div>';
     return $out;
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:16,代码来源:MultipleObjectTypePrefixConfigHandler.class.php

示例7: render

 function render($control_name)
 {
     $genid = gen_id();
     $groups = PermissionGroups::findAll(array('conditions' => "`type`='roles' AND `parent_id`>0"));
     $value = $this->getValue();
     $out = '';
     foreach ($groups as $group) {
         /* @var $dim Dimension */
         $checked = array_search($group->getId(), $value) !== false;
         $out .= '<div class="checkbox-config-option">';
         $out .= label_tag($group->getName(), $genid . '_' . $control_name . '_' . $group->getId(), false, array('style' => 'cursor:pointer;'), '');
         $out .= checkbox_field($control_name . '[' . $group->getId() . ']', $checked, array('id' => $genid . '_' . $control_name . '_' . $group->getId()));
         $out .= '</div >';
     }
     $out .= '<input type="hidden" name="' . $control_name . '[0]" value=" "><div class="clear"></div>';
     return $out;
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:17,代码来源:UserTypeMultipleConfigHandler.class.php

示例8: crud_batchType

 function crud_batchType()
 {
     $oper = $this->input->post('oper');
     $id_ = $this->input->post('id');
     $array_edit = array('CODE' => $this->input->post('CODE'), 'IS_ACTIVE' => $this->input->post('IS_ACTIVE'), 'IS_BATCH_REPORT' => $this->input->post('IS_BATCH_REPORT'), 'UPDATE_DATE' => "SYSDATE", 'UPDATE_BY' => $this->session->userdata('d_user_name'));
     switch ($oper) {
         case 'add':
             $new_id = gen_id('P_BATCH_TYPE_ID', 'P_BATCH_TYPE');
             $this->db->query("INSERT INTO P_BATCH_TYPE(P_BATCH_TYPE_ID,CODE,IS_ACTIVE,IS_BATCH_REPORT,CREATION_DATE,CREATED_BY,UPDATE_DATE,UPDATE_BY)\r\n                                    VALUES({$new_id},\r\n                                            '" . $this->input->post('CODE') . "',\r\n                                            '" . $this->input->post('IS_ACTIVE') . "',\r\n                                            '" . $this->input->post('IS_BATCH_REPORT') . "',\r\n                                            SYSDATE,\r\n                                            '" . $this->session->userdata('d_user_name') . "',\r\n                                            SYSDATE,\r\n                                            '" . $this->session->userdata('d_user_name') . "'\r\n                                            )");
             break;
         case 'edit':
             $this->db->query("UPDATE P_BATCH_TYPE SET\r\n                                    CODE = '" . $this->input->post('CODE') . "',\r\n                                    IS_ACTIVE = '" . $this->input->post('IS_ACTIVE') . "',\r\n                                    IS_BATCH_REPORT = '" . $this->input->post('IS_BATCH_REPORT') . "',\r\n                                    UPDATE_DATE = SYSDATE,\r\n                                    UPDATE_BY = '" . $this->session->userdata('d_user_name') . "'\r\n                                    WHERE\r\n                                    P_BATCH_TYPE_ID = " . $id_);
             break;
         case 'del':
             $this->db->where('P_BATCH_TYPE_ID', $id_);
             $this->db->delete('P_BATCH_TYPE');
             break;
     }
 }
开发者ID:wiliamdecosta,项目名称:channel_management,代码行数:19,代码来源:m_parameter.php

示例9: render_single_member_selector

function render_single_member_selector(Dimension $dimension, $genid = null, $selected_member_ids = null, $options = array(), $default_view = true)
{
    if (is_null($genid)) {
        $genid = gen_id();
    }
    $dim_info = array('dimension_id' => $dimension->getId(), 'dimension_code' => $dimension->getCode(), 'dimension_name' => $dimension->getName(), 'is_manageable' => $dimension->getIsManageable(), 'is_required' => array_var($options, 'is_required'), 'is_multiple' => array_var($options, 'is_multiple'));
    $dimensions = array($dim_info);
    if (!is_array($selected_member_ids)) {
        $selected_member_ids = array();
    }
    foreach ($selected_member_ids as $k => &$v) {
        if (!is_numeric($v)) {
            unset($selected_member_ids[$k]);
        }
    }
    if (count($selected_member_ids) > 0) {
        $sql = "SELECT m.id FROM " . TABLE_PREFIX . "members m WHERE m.id IN (" . implode(',', $selected_member_ids) . ") AND m.dimension_id=" . $dimension->getId();
        $clean_sel_member_ids = array_flat(DB::executeAll($sql));
        $selected_member_ids = $clean_sel_member_ids;
    }
    $content_object_type_id = array_var($options, 'content_object_type_id');
    $initial_selected_members = $selected_member_ids;
    if (is_null($selected_member_ids)) {
        $selected_member_ids = array();
    }
    // Set view variables
    $selected_members = count($selected_member_ids) > 0 ? Members::findAll(array('conditions' => 'id IN (' . implode(',', $selected_member_ids) . ')')) : array();
    $selected_members_json = "[" . implode(',', $selected_member_ids) . "]";
    $component_id = "{$genid}-member-selectors-panel-{$content_object_type_id}";
    $listeners = array_var($options, 'listeners', array());
    $allowed_member_type_ids = array_var($options, 'allowedMemberTypes', null);
    $hide_label = array_var($options, 'hide_label', false);
    if (isset($options['label'])) {
        $label = $options['label'];
    }
    // Render view
    include get_template_path("components/multiple_dimension_selector", "dimension");
}
开发者ID:abhinay100,项目名称:feng_app,代码行数:38,代码来源:dimension.php

示例10: add_subscribers_list

 function add_subscribers_list()
 {
     if (logged_user()->isGuest()) {
         flash_error(lang('no access permissions'));
         ajx_current("empty");
         return;
     }
     $genid = array_var($_GET, 'genid');
     $obj_id = array_var($_GET, 'obj_id');
     $obj_manager = array_var($_GET, 'manager');
     $object = get_object_by_manager_and_id($obj_id, $obj_manager);
     if (!isset($genid)) {
         $genid = gen_id();
     }
     $subscriberIds = array();
     if ($object->isNew()) {
         $subscriberIds[] = logged_user()->getId();
     } else {
         foreach ($object->getSubscribers() as $u) {
             $subscriberIds[] = $u->getId();
         }
     }
     if (!isset($workspaces)) {
         if ($object->isNew()) {
             $workspaces = array(active_or_personal_project());
         } else {
             $workspaces = $object->getWorkspaces();
         }
     }
     tpl_assign('object', $object);
     tpl_assign('type', get_class($object->manager()));
     tpl_assign('workspaces', $workspaces);
     tpl_assign('subscriberIds', $subscriberIds);
     tpl_assign('genid', $genid);
     //echo tpl_fetch(get_template_path('add_subscribers_list', 'object'));
 }
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:36,代码来源:ObjectController.class.php

示例11: get_sandbox_url

			if (defined('SANDBOX_URL')) {
				$url = get_sandbox_url('feed', 'show_html_mail', array('pre' => $tpre, 'r' => gen_id(), 'id' => logged_user()->getId(), 'token' => $user_token));
			} else {
				$url = get_url('mail', 'show_html_mail', array('pre' => $tpre, 'r' => gen_id()));
			}
			$content .= '<div style="position: relative; left:0; top: 0; width: 100%; height: 100px; background-color: white">';
			$content .= '<iframe id="'.$genid.'ifr" name="'.$genid.'ifr" style="width:100%;height:100%" frameborder="0" src="'.$url.'" 
							onload="javascipt:iframe=document.getElementById(\''.$genid.'ifr\'); iframe.parentNode.style.height = Math.min(600, iframe.contentWindow.document.body.scrollHeight + 30) + \'px\' ;">
						</iframe>';
			'<script>if (Ext.isIE) document.getElementById(\''.$genid.'ifr\').contentWindow.location.reload();</script>';
			$content .= '<a class="ico-expand" style="display: block; width: 16px; height: 16px; cursor: pointer; position: absolute; right: 20px; top: 2px" title="' . lang('expand') . '" onclick="og.expandDocumentView.call(this)"></a>
				</div>';

			if ($remove_quoted) {
				$content .= '<a id="'.$genid.'showQuotedText" style="font-family:verdana,arial,helvetica,sans-serif; font-size:11px; line-height:150%; cursor:pointer; color:#003562; padding-left:10px;"
						onclick="og.showQuotedHtml(\''.$pre.'\', \''.gen_id().'\', \''.$genid.'\', \''.$user_token.'\');">
						:: '.lang('show quoted text').' ::</a>';					
			}
			$content .= '
				<input type="hidden" id="'.$genid.'viewingImages" value="'.($remove_images?'no':'yes').'" />
				<input type="hidden" id="'.$genid.'viewingQuoted" value="'.($remove_quoted?'no':'yes').'" />
			';
		} else {
			if ($email->getBodyPlain() != '') {
				$remove_quoted = MailUtilities::hasQuotedText($email->getBodyPlain()) && $hide_quoted_text_in_emails;
				$content = "";
				if ($remove_quoted) {
					$content = MailUtilities::replaceQuotedText($email->getBodyPlain(), '-----'.lang('hidden quoted text').'-----');
					$content = '<div id="'.$genid.'noQuoteMail">' . escape_html_whitespace(convert_to_links(clean($content))) . '</div>';
					$content = str_replace('-----'.lang('hidden quoted text')."-----", '<span style="color: #777;font-style:italic;padding: 5px 20px">&lt;'.lang('hidden quoted text').'&gt;</span>', $content);
					$content .= '<a class="internalLink" style="padding-left:10px;" id="'.$genid.'quotedLink" href="#" onclick="og.showQuotedText(\''.$genid.'\')">:: '.lang('show quoted text').' ::</a>';
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:view.php

示例12: lang

     if ($start_of_task && $end_of_task) {
         $tip_title = lang('task');
         $img_url = image_url('/16x16/tasks.png');
         $tip_pre = '';
     } else {
         if ($end_of_task) {
             $tip_title = lang('end of task');
             $img_url = image_url('/16x16/task_end.png');
             $tip_pre = 'end_';
         } else {
             $tip_title = lang('start of task');
             $img_url = image_url('/16x16/task_start.png');
             $tip_pre = 'st_';
         }
     }
     $tip_pre .= gen_id() . "_";
     $div_prefix = 'd_ta_div_' . $tip_pre;
     $subject = $event->getObjectName();
     $divtype = '<span class="italic">' . $tip_title . '</span> - ';
     $tipBody = lang('assigned to') . ': ' . clean($event->getAssignedToName()) . (trim(clean($event->getText())) != '' ? '<br><br>' . html_to_text($event->getText()) : '');
 } elseif ($event instanceof ProjectEvent) {
     $div_prefix = 'd_ev_div_';
     $subject = clean($event->getObjectName());
     $img_url = image_url('/16x16/calendar.png');
     $divtype = '<span class="italic">' . lang('event') . '</span> - ';
     $tipBody = trim(clean($event->getDescription())) != '' ? '<br>' . clean($event->getDescription()) : '';
 } elseif ($event instanceof Contact) {
     $div_prefix = 'd_bd_div_';
     $objType = 'contact';
     $subject = clean($event->getObjectName());
     $img_url = image_url('/16x16/contacts.png');
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:31,代码来源:viewdate.php

示例13: gen_id

<?php

$container_id = gen_id();
?>
<div id="<?php 
echo $container_id;
?>
"></div>
<script>
var tasks = [
<?php 
$first = true;
foreach ($tasks as $task) {
    /*if ($task->getMilestoneId() != 0) {
    		// don't show in tasks tasks that will also be listed under milestones.
    		// if this is removed, tasks will appear twice. something needs to be done
    		// so that updates on one of them reflects on the other.
    		continue;
    	}*/
    if ($first) {
        $first = false;
    } else {
        echo ",";
    }
    $taskInfo = "id:" . $task->getId() . "," . "title:'" . str_replace("\n", " ", str_replace("'", "\\'", $task->getTitle())) . "'," . "parent:" . $task->getParentId() . "," . "milestone:" . $task->getMilestoneId() . "," . "subtasks:[]," . "assignedTo:'" . str_replace("'", "\\'", $task->getAssignedTo() == null ? '' : $task->getAssignedToName()) . "'," . "expanded:false," . "completed:" . ($task->isCompleted() ? "true" : "false") . "," . "completedBy:'" . str_replace("'", "\\'", $task->getCompletedByName()) . "'," . "isLate:" . ($task->isLate() ? "true" : "false") . "," . "daysLate:" . $task->getLateInDays() . "," . "priority:" . $task->getPriority() . "," . "duedate:" . ($task->getDueDate() ? $task->getDueDate()->getTimestamp() : '0') . "," . "percentCompleted:" . $task->getPercentCompleted() . "," . "order:" . $task->getOrder();
    echo '{' . $taskInfo . '}';
}
// foreach
?>
];
开发者ID:abhinay100,项目名称:feng_app,代码行数:30,代码来源:view_tasks.php

示例14: require_javascript

<?php 
require_javascript('og/modules/linkToObjectForm.js');
if (!$genid) $genid = gen_id();
?>
<a id="<?php echo $genid ?>before" href="#" onclick="App.modules.linkToObjectForm.pickObject(this)"><?php echo lang('link object') ?></a>

<script>
<?php
if (is_array($objects)) {
	foreach ($objects as $o) {
		if (!$o instanceof ContentDataObject) continue;
?>
App.modules.linkToObjectForm.addObject(document.getElementById('<?php echo $genid ?>before'), {
	'object_id': <?php echo $o->getId() ?>,
	'type': '<?php echo $o->getObjectTypeName() ?>',
	'name': <?php echo json_encode($o->getObjectName()) ?>
});
<?php
	}
}
?>
</script>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:22,代码来源:linked_objects.php

示例15: generatePDFReport


//.........这里部分代码省略.........
     $pdf = new FPDF($pageLayout);
     $pdf->setTitle($report->getName());
     $pdf->AddPage();
     $pdf->SetFont('Arial', '', $fontSize);
     $pdf->Cell(80);
     $report_title = iconv(mb_internal_encoding(), "ISO-8859-1", html_entity_decode($report->getName(), ENT_COMPAT));
     $pdf->Cell(30, 10, $report_title);
     $pdf->Ln(20);
     $colSizes = array();
     $maxValue = array();
     $fixed_col_sizes = array();
     foreach ($results['rows'] as $row) {
         $i = 0;
         foreach ($row as $k => $value) {
             if (!isset($maxValue[$i])) {
                 $maxValue[$i] = '';
             }
             if (strlen(strip_tags($value)) > strlen($maxValue[$i])) {
                 $maxValue[$i] = strip_tags($value);
             }
             $i++;
         }
     }
     $k = 0;
     foreach ($maxValue as $str) {
         $col_title_len = $pdf->GetStringWidth($results['columns'][$k]);
         $colMaxTextSize = max($pdf->GetStringWidth($str), $col_title_len);
         $db_col = $results['columns'][$k];
         $colType = array_var($types, array_var($results['db_columns'], $db_col, ''), '');
         if ($colType == DATA_TYPE_DATETIME && !($report->getObjectType() == 'ProjectEvents' && $results['db_columns'][$db_col] == 'start')) {
             $colMaxTextSize = $colMaxTextSize / 2;
             if ($colMaxTextSize < $col_title_len) {
                 $colMaxTextSize = $col_title_len;
             }
         }
         $fixed_col_sizes[$k] = $colMaxTextSize;
         $k++;
     }
     $fixed_col_sizes = self::fix_column_widths($pageLayout == 'P' ? 172 : 260, $fixed_col_sizes);
     $max_char_len = array();
     $i = 0;
     foreach ($results['columns'] as $col) {
         $colMaxTextSize = $fixed_col_sizes[$i];
         $colFontSize = $colMaxTextSize + 5;
         $colSizes[$i] = $colFontSize;
         $col_name = iconv(mb_internal_encoding(), "ISO-8859-1", html_entity_decode($col, ENT_COMPAT));
         $pdf->Cell($colFontSize, 7, $col_name);
         $max_char_len[$i] = self::get_max_length_from_pdfsize($pdf, $colFontSize);
         $i++;
     }
     $lastColX = $pdf->GetX();
     $pdf->Ln();
     $pdf->Line($pdf->GetX(), $pdf->GetY(), $lastColX, $pdf->GetY());
     foreach ($results['rows'] as $row) {
         $i = 0;
         $more_lines = array();
         $col_offsets = array();
         foreach ($row as $k => $value) {
             if ($k == 'link') {
                 $value = strip_tags($value);
                 $cell = $value;
             } else {
                 $cell = $this->format_value_to_print($k, $value, $types[$k], $report->getObjectType());
             }
             $cell = iconv(mb_internal_encoding(), "ISO-8859-1", html_entity_decode($cell, ENT_COMPAT));
             $splitted = self::split_column_value($cell, $max_char_len[$i]);
             $cell = $splitted[0];
             if (count($splitted) > 1) {
                 array_shift($splitted);
                 $ml = 0;
                 foreach ($splitted as $sp_val) {
                     if (!isset($more_lines[$ml]) || !is_array($more_lines[$ml])) {
                         $more_lines[$ml] = array();
                     }
                     $more_lines[$ml][$i] = $sp_val;
                     $ml++;
                 }
                 $col_offsets[$i] = $pdf->x;
             }
             $pdf->Cell($colSizes[$i], 7, $cell);
             $i++;
         }
         foreach ($more_lines as $ml_values) {
             $pdf->Ln();
             foreach ($ml_values as $col_idx => $col_val) {
                 $pdf->SetX($col_offsets[$col_idx]);
                 $pdf->Cell($colSizes[$col_idx], 7, $col_val);
             }
         }
         $pdf->Ln();
         $pdf->SetDrawColor(220, 220, 220);
         $pdf->Line($pdf->GetX(), $pdf->GetY(), $lastColX, $pdf->GetY());
         $pdf->SetDrawColor(0, 0, 0);
     }
     $filename = ROOT . "/tmp/" . gen_id() . ".pdf";
     $pdf->Output($filename, "F");
     download_file($filename, "application/pdf", $report->getName(), true);
     unlink($filename);
     die;
 }
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:101,代码来源:ReportingController.class.php


注:本文中的gen_id函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。